I was wondering if there is a way to use the power of Django Admin\'s filtering/ordering/paginating/search capabilities in a regular view.
What I mean is that I hav
To extend on Alasdair's answer, I added a simple module that adds simple filtering to django-tables2. See https://github.com/benjiec/django-tables2-simplefilter.
The django functionality you mention isn't really reusable in custom views as of Django 1.3. There was recently some discussion on the django-developers group about splitting out admin functionality to make it reusable.
I have come across two projects that might be useful to you, django-tables2 and django-filter. They both offer slightly different things, I think you're looking for a mixture of the two.
django-tables2 simplifies the task of turning sets of data into HTML tables. It has native support for pagination and sorting. It does for HTML tables what django.forms does for HTML forms
Django-filter is a reusable Django application for allowing users to filter queryset dynamically. It requires Python 2.4 or higher. For usage and installation instructions consult the docs directory.
Django-filter can be used for generating interfaces similar to the Django admin's
list_filter
interface. It has an API very similar to Django'sModelForms
.