#5833: Custom FilterSpecs
-------------------------------------------+--------------------------------
Reporter: Honza_Kral | Owner: jkocherhans
Status: assigned | Milestone:
Component: django.contrib.admin | Version: SVN
Resolution: | Keywords: nfa-someday
list_filter filterspec nfa-changelist ep2008
Stage: Accepted | Has_patch: 1
Needs_docs: 1 | Needs_tests: 1
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by anonymous):
* cc: [email protected] (added)
Comment:
Replying to [ticket:5833 Honza_Kral]:
> One should be able to create custom `FilterSpecs` for the admin's
`list_filter` interface.
>
> Honza_Kral: I modified the filterspec definition to allow for users to
register their own filters in admin. The mechanism is simple - I just
reverted the order of the registry so that newly registered specs will
come first. That way if you register your own filter via
{{{FilterSpec.register}}}, it will be used before the default one.
>
> Another approach by korpios is described in the comments.
--
Ticket URL: <http://code.djangoproject.com/ticket/5833#comment:73>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.