Intelligently add links that filter a list of Django model objects.
Project description
Overview
This library provides filters similar in some ways to list_filter and date_hierarchy in Django’s admin, but for use outside the admin. Importantly, it also includes result counts for the choices. It is designed to be very easy to get started with.
Download/install
Just install as a Python library.
Docs
See the docs/ directory, especially docs/overview.rst
Also hosted here: http://packages.python.org/django-easyfilters
Demo
A small demo app is included, see the instructions in docs/develop.rst
A (currently) live example can be seen at:
Status
The library is in a useful state, but not quite ‘complete’. The main glaring feature omission in nice handling of Decimal fields (or other numeric fields that need to be treated as a continuum of values) to provide range-base selection.
The internal API of Filter and FilterSet are not firmed up, but are not far from being so. Test coverage is extensive.
Feedback regarding API or features is very welcome!
TODO
Automatic range-based filters for DecimalFields - e.g. for prices
Ability to specify ‘defaults’ attribute for FilterSet
Allow the automatic ‘page’ resetting to be customized
Version 0.1.1
Cleaned up the release tarball to remove old files.
Version 0.1
Initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.