Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

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.)

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.