#8528: Admin list_filter doesn't respect null=True
------------------------------------------------+---------------------------
Reporter: StevenPotter | Owner: julien
Status: new | Milestone: 1.3
Component: django.contrib.admin | Version: 1.3-alpha
Resolution: | Keywords:
Triage Stage: Ready for checkin | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 |
------------------------------------------------+---------------------------
Comment (by russellm):
Two quick notes for the benefit of posterity:
1. I've made one very small addition to this patch as provided -- I've
modified the has_output() method on RelatedValueFilterSpec, to allow for
the fact that "none" should be included in the count of available values
if the related field allows nulls. This caused me a bit of confusion in my
simple manual test case because I only defined a single related object,
and the filters didn't display -- because according to the filterspec,
there was only one valid value, and a filter isn't required if there's
only one value.
2. I'm not going to backport this to 1.2.X. The bug obviously exists in
1.2.X, but it's the new FilterSpec framework that gives us the flexibility
to fix the bug easily; a backport would be a major PITA.
--
Ticket URL: <http://code.djangoproject.com/ticket/8528#comment:24>
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.