djangosnippets.org: Latest snippets tagged with 'SimpleListFilter'https://djangosnippets.org/tags/simplelistfilter/2013-01-28T13:21:11.078807-06:00Custom change_list filter based on SimpleListFilter shows only referenced (related, used) values
2013-01-28T13:21:11.078807-06:00darklowhttps://djangosnippets.org/snippets/2885/<p>Since Django 1.4 you can create your own filters for change list view.
If you want to show just used/related items in filter chooser you can use this snippet.</p>
<p>Original idea from <a href="http://jmduke.net/post/39953950546/custom-admin-filters-in-django">here</a>. Big thanks to author.</p>
<p>Improved class names for better clarity and use of model_admin.model instead of …</p>
Freely redistributable