Hi,

On Aug 14, 8:54 pm, sniper <suren...@gmail.com> wrote:
> I am asking this because in the admin page, the list page uses digg
> style paging.

Like everything else that comes with Django, the admin app is open
source, so nothing stops you from having a peek. This particular
functionality can be found in django/contrib/admin/templatetags/
admin_list.py, line 28[1]. The template tag has some admin-specifics
in it, you'd have to copy the template tag and adjust it. Or, and this
is probably what David so eloquently suggested, you could use one of
the countless digg-style paginators for Django that float around the
net. I'm quite fond of this[2] one because it extends the built-in
pagination facilities instead of completely reinventing the wheel.

Kind regards,
Benjamin

[1] 
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templatetags/admin_list.py#L28
[2] http://www.djangosnippets.org/snippets/773/
--~--~---------~--~----~------------~-------~--~----~
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