Reordering list of models in Django Admin

Here is my version:

def get_app_list(self, request, app_label=None):
    # Return the installed apps that have been registered
    # in this site in the order the user has registred them
    app_dict = self._build_app_dict(request, app_label)
    app_list = app_dict.values()

    # Do not sort models alphatbetically
    # As the Boss said - Take 'em as they come
    #for app in app_list:
    #    app["models"].sort(key=lambda x: x["name"])

    return app_list

admin.AdminSite.get_app_list = get_app_list

@clrke - excellent contribution!

1 Like