Changed the admin index to sort models alphabetically.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d09ae12632
commit
df668ee782
|
@ -42,6 +42,7 @@ class AdminApplistNode(template.Node):
|
||||||
})
|
})
|
||||||
|
|
||||||
if model_list:
|
if model_list:
|
||||||
|
model_list.sort()
|
||||||
app_list.append({
|
app_list.append({
|
||||||
'name': app_label.title(),
|
'name': app_label.title(),
|
||||||
'has_module_perms': has_module_perms,
|
'has_module_perms': has_module_perms,
|
||||||
|
|
Loading…
Reference in New Issue