djangosnippets.org: Latest snippets tagged with 'custom filters'https://djangosnippets.org/tags/custom-filters_1/2012-03-03T04:10:04.468569-06:00Custom Filter using filterspecs
2012-03-03T04:10:04.468569-06:00guglielmocelatahttps://djangosnippets.org/snippets/2704/<p>This snippet is based on <a href="http://djangosnippets.org/snippets/1051/">#1051</a>.</p>
<p>It adds filtering by existence of at least one related object.
It is an example of how to simply subclass the FilterSpec class,
in order to build a custom Filter.</p>
<p>The comment in the code contains instructions on how to implement it in …</p>
Freely redistributable