#28991: Add new BlankFieldListFilter admin filter
-----------------------------------------+------------------------
Reporter: Jonas Haag | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Add a new admin filter that allows to show only objects with a blank (or
non-blank) field value. Shows three options "all", "blank", "not blank".
This is something I've regularly required and there doesn't seem to be any
third party package implementing this, but there are at least a few other
people having the need: https://stackoverflow.com/questions/37799694
/django-admin-list-filter-filter-field-by-is-empty-none-or-empty-string
https://gist.github.com/haplo/2695675 Note that while the filter could
easily live in a third party package, I think it makes sense to include it
in Django. It's not much code and I guess it's a common requirement.
--
Ticket URL: <https://code.djangoproject.com/ticket/28991>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.b9001f43aed8a343ed2397a1ba97f458%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.