validate the css validate the xhtml

Ceci n'est pas une blog
by Glenn Franxman, Django Developer / Stunt Programmer.

Django Admin ordered how you like

posted: 2023-05-08 17:55:15 perma-link, RSS comments feed

I got so tired and irritated by Django's alphabetical sorting of apps and models in the admin.

def get_unordered_app_list(self, request):
Return a list of all the installed apps that have been registered in this site in
the order they were registered.
app_dict = self._build_app_dict(request)

app_list = app_dict.values()

return app_list

admin.AdminSite.get_app_list = get_unordered_app_list


Post a comment

Based upon your reading habits, might I recommend:

Or, you might like:

Copyright © 2003,2004,2005,2006,2007,2008 GFranxman. All Rights Reserved

hosting: powered by: django. written in: python. controlled by: bzr. monsters by: monsterID.

You've been exposed to: {'Programming': 1}