Admin strxfrm mac #81

Merged
zelvuska merged 4 commits from strxfrm_pro_mac into master 2025-01-07 18:30:52 +01:00
Showing only changes of commit ddd12b684d - Show all commits

View file

@ -56,7 +56,7 @@ def get_app_list(self, request, app_label=None):
# Sort the models alphabetically within each app.
try:
try: # na macu nefunguje locale.strxfrm :-/ proto je tu try except block
for app in app_list:
app['models'].sort(key=lambda x: locale.strxfrm(x['name'].lower()))
except OSError: