#8101: Admin boolean filter
--------------------------------------+-------------------------------------
Reporter: Alexander | Owner: nobody
Status: reopened | Milestone: 1.0
Component: Admin interface | Version: SVN
Resolution: | Keywords: bool filter string
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 1
Needs_better_patch: 1 |
--------------------------------------+-------------------------------------
Changes (by mattdw):
* status: closed => reopened
* resolution: duplicate =>
* component: Core framework => Admin interface
Comment:
There's still a problem here, but I'm guessing it's probably something
that needs to be dealt with in the contrib.admin.
To clarify, if you have a {{{BooleanField}}} in a
{{{ModelAdmin.list_filter = [...]}}}, currently that filter will always
show only {{{field=True}}} records. I imagine this is because
{{{?field__exact=0}}} in the url translates to {{{'0'}}}, and {{{bool('0')
== True}}}. A current workaround is to hack the url to
'{{{?field__exact=}}}'.
--
Ticket URL: <http://code.djangoproject.com/ticket/8101#comment:7>
Django Code <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
-~----------~----~----~----~------~----~------~--~---