Tuesday, November 30, 2010

missing object in object_list generic view

It's very strange, got this:
urls
info_dict = {
'Queryset': Obra.objects.all (),
}

(r'index / $ ',' django.views.generic.list_detail.object_list ',
info_dict, dict (name = "obras_index", template_object_name = 'obras',
paginate_by = 5)),

template
[...]
{% For book in the works%}
<h2> obra.numero {{}} </ h2> ## example
[...]

and what appears in place of the list of objects paged out of 5 in 5,
is
"Page of"

I'm missing the queryset variable somehow

What can I do to solve the problem

thank you
Aboim

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment