djangosnippets.org: Latest snippets posted by visik7http://djangosnippets.org/users/visik7/2013-08-12T21:30:02.634074-05:00visik7Many 2 Many Admin Ordering with Mysql
2013-08-12T21:30:02.634074-05:00visik7http://djangosnippets.org/snippets/2979/<p>My Models has a FK to translations and also a many 2 many to categories which also them are translated</p>
<p>With this code I concatenate the translation of the categories and allow the changelist to order them.</p>
<p>works only on mysql but you can adapt to your DB</p>
<p>SET SESSION …</p>
Freely redistributableAdvanced Search in django admin
2011-01-14T11:47:34.585055-06:00visik7http://djangosnippets.org/snippets/2322/<p>This is an example on how to create a custom advanced search (like the google advanced search page) in the admin app instead of the basic search field.</p>
<p>you need to override 2 template of the admin so in your templates/admin folder copy the html files from the original admin …</p>
Freely redistributable