djangosnippets.org: Latest snippets posted by luc_jhttps://djangosnippets.org/users/luc_j/2010-09-13T09:32:31-05:00luc_jForeignKey filterspec2010-09-13T09:32:31-05:00luc_jhttps://djangosnippets.org/snippets/2194/<p>Unfortunately, it is not possible currently to use foreign keys in list filter of the admin website. list_filter=['city__country'] doesn't work.</p>
<p>This filter spec tries to workaround this problem.</p>
<p>It is also possible to have 2 filters for a foreign-key field but it requires to add a dummy field ...</p>
Freely redistributableDisplay user-friendly values of a ManyToManyRawIdWidget2010-07-15T00:34:28-05:00luc_jhttps://djangosnippets.org/snippets/2108/<p>A Widget for displaying ManyToMany ids in the "raw_id" interface rather than in a &lt;select multiple&gt; box. Display user-friendly value like the ForeignKeyRawId widget</p>
Freely redistributable