Anyone?

On Aug 14, 8:29 am, tezro <tezro...@gmail.com> wrote:
> The question is that "django.views.generic.date_based.archive_index()"
> takes an optional argument "num_latest" which is 15 by default.
> Setting it manually to num_latest=1000000000 is way off to correct to
> me. It works. I suppose that it even doesn't retrieve all the tons of
> data from the DB, but what if I have 1000000000 + 1 record :)
>
> What's the right way to use "django-pagination" and the "archive_index
> ()" or am I missing something?
>
> Example code.
> _______________
>
> def index(request):
>         qs = News.objects.filter(is_published=1)
>         return archive_index(request, qs, 'date', num_latest=100000000)
> _______________
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to