Re: order of models per app in admin interface

2007-01-22 Thread Marc Boeren
Overriding admin/index.html would make it less generic :-) Instead, I've changed the adminapplist.py templatetag which is used in index.html. It's a very simple patch, really. ..Mc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: order of models per app in admin interface

2007-01-22 Thread oggie rob
Isn't is easier just to override admin/index.html? That way you can even add some styling/javascript that will organize it to better suit your needs. If you don't know what I mean: 1) copy the file django/contrib/admin/templates/admin/index.html to yourtemplatedir/admin/index.html. 2) Add yourtem

order of models per app in admin interface

2007-01-22 Thread Marc Boeren
Hi, I've looked in the django code to see if I could get my models ordered explicitly in the admin interface, but could only find code that sorts it alphabetically on name (verbose_name_plural). I hacked up a quick patch that allows you to set an 'order_in_app_models' attribute to the Admin clas