komentar
This commit is contained in:
parent
eb2b861d48
commit
ddd12b684d
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def get_app_list(self, request, app_label=None):
|
||||||
|
|
||||||
|
|
||||||
# Sort the models alphabetically within each app.
|
# 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:
|
for app in app_list:
|
||||||
app['models'].sort(key=lambda x: locale.strxfrm(x['name'].lower()))
|
app['models'].sort(key=lambda x: locale.strxfrm(x['name'].lower()))
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
Loading…
Reference in a new issue