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
Based upon your reading habits, might I recommend: Or, you might like: |
hosting: slicehost.com.
powered by: django.
written in: python.
controlled by: bzr.
monsters by: monsterID.
You've been exposed to: {'Programming': 1}