Oprava odhlášeného admina

This commit is contained in:
Pavel "LEdoian" Turinsky 2024-06-03 03:02:06 +02:00
parent 381c5ca3de
commit c78b932587

View file

@ -51,7 +51,8 @@ def get_app_list(self, request, app_label=None):
'prednasky', 'prednasky',
'soustredeni', 'soustredeni',
] ]
app_list = [app_dict[label] for label in aplikace_nahore] + [app_dict[label] for label in app_dict if label not in aplikace_nahore] # Odhlášený admin má prázdný app_dict :-/
app_list = [app_dict[label] for label in aplikace_nahore if label in app_dict] + [app_dict[label] for label in app_dict if label not in aplikace_nahore]
# Sort the models alphabetically within each app. # Sort the models alphabetically within each app.