From 5a8d993cbb41e52083566273c530ba49b7cd89cf Mon Sep 17 00:00:00 2001 From: Patrick Mayr Date: Sat, 7 Jan 2023 11:43:34 +0000 Subject: [PATCH] fix get_app_list --- fet2020/core/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fet2020/core/admin.py b/fet2020/core/admin.py index b8493871..503f93a8 100644 --- a/fet2020/core/admin.py +++ b/fet2020/core/admin.py @@ -37,13 +37,13 @@ class CustomFlatPageAdmin(FlatPageAdmin): # Set the ordering of models in Admin Dashboard -def get_app_list(self, request): +def get_app_list(self, request, app_label=None): """ Return a sorted list of all the installed apps that have been registered in this site. """ # Retrieve the original list - app_dict = self._build_app_dict(request) + app_dict = self._build_app_dict(request, app_label) app_list = sorted(app_dict.values(), key=lambda x: x["name"].lower()) # Sort the models customably within each app.