djangosnippets.org: Latest snippets tagged with 'FilterSpec'https://djangosnippets.org/tags/filterspec_1/2010-11-12T14:30:53.488052-06:00Limit ForeignKey filter values to those that have a relationship with current model
2010-11-12T14:30:53.488052-06:00overclockedhttps://djangosnippets.org/snippets/2261/<p>This is an updated snippet based on http://djangosnippets.org/snippets/2260/</p>
<p>The updated snippet can limit the filtering options for a foreign key field to only those entries that are related to the current model. I.e. if you have an Author model with a FK to Institution model, you can configure Author's changelist …</p>
Freely redistributableChangelist filter by ForeignKey
2010-11-12T13:29:31.396453-06:00overclockedhttps://djangosnippets.org/snippets/2260/<p>Want to filter by properties on FK fields? Want to display as filters only FK objects that matter to your model? See comments in the code.</p>
Freely redistributable