djangosnippets.org: Latest snippets posted by flupkehttps://djangosnippets.org/users/flupke/2011-10-26T08:00:07.080676-05:00flupkeDisable ordering in the admin for a model
2011-10-26T08:00:07.080676-05:00flupkehttps://djangosnippets.org/snippets/2580/<p>Django admin orders models by their primary key by default, which can be undesirable on very large tables.</p>
<p>This shows how to disable any ordering on a model.</p>
<p>Note that this behavior is fixed in 1.4 trunk.</p>
Freely redistributableFilter by taggit tags in the admin
2011-10-12T11:22:44.706136-05:00flupkehttps://djangosnippets.org/snippets/2570/<p>A FilterSpec that can be used to filter by taggit tags in the admin.</p>
<p>To use, simply import this module (for example in <code>models.py</code>), and add the name of your TaggableManager field in the
list_filter attribute of your ModelAdmin class.</p>
Freely redistributable