Browse Source

Oprava odhlášeného admina

pull/51/head
Pavel "LEdoian" Turinsky 6 months ago
parent
commit
c78b932587
  1. 3
      mamweb/admin.py

3
mamweb/admin.py

@ -51,7 +51,8 @@ def get_app_list(self, request, app_label=None):
'prednasky',
'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.

Loading…
Cancel
Save