neithere / django-view-shortcuts

A set of shortcuts for Django views

 NB: This is not the latest revision. For the latest view, go to tip.

View at rev
django-view-shortcuts /
filename size last modified message
example_app  
view_shortcuts  
.hgignore 41 B 11 months ago Add long description for setuptools. Exclude egg-info from…
.hgtags 146 B 11 months ago Added tag 1.1-beta for changeset 72ed3963d111
CHANGELOG 1.2 KB 13 months ago Add files (as of 2008-10-30; created on 2008-10-16)
COPYING.LESSER 7.5 KB 13 months ago Add files (as of 2008-10-30; created on 2008-10-16)
INSTALL 65 B 13 months ago Add files (as of 2008-10-30; created on 2008-10-16)
README 826 B 10 months ago Refactor filters: add filter factory from…
setup.py 1.4 KB 10 months ago Update distutils info
test.py 619 B 10 months ago Added script to test the package without installing it into …

README

Why view_shortcuts.filters, not django.contrib.admin.filterspecs?

- ordinary views, not only admin
- lookups mapped to params --> security
- no pre-generated html --> valid, flexible
- QuerySet in, QuerySet out: can pre- and post-filter
- choices with respect to existing QuerySet

What's good in filterspecs (included here now, too):

- factory with simple tests
  - enables field-specific behaviour
  - easily extendable with custom filterspecs

TODO:

- more filters:
  - alphabetic
  - date drilldown
  - date fadeout
  - range selection
- add ability to enforce a filter when creating a FilterList
  (e.g. date drilldown/fadeout have to pass the same test and, therefore,
  the one which is declared earlier will be chosen automatically; this makes
  no sense and developer should be able to choose the field manually.)