djangosnippets.org: Latest snippets posted by Codekohttps://djangosnippets.org/users/Codeko/2010-10-07T14:30:59.132524-05:00CodekoRelatedNullFilterSpec: django-admin custom filter all/null/not null/choices
2010-10-07T14:30:59.132524-05:00Codekohttps://djangosnippets.org/snippets/2229/<p>A simple django-admin filter to replace standar RelatedFilterSpec with one with the "All"/"Null"/"Not null" options.
It applies to all relational fields (ForeignKey, ManyToManyField).
</p>
<p>You can put the code in the <code>__init__.py</code> or wherever you want.
</p>
<p>The <code>_register_front</code> idea is copied on <a href="http://djangosnippets.org/snippets/1963/">this snippet</a>
</p>
Freely redistributable