Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #11796 - Tweaked ordering of permissions a little more to be ev…

…en nicer.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f4998574d3edd045ef28323b2d496eff58098f90 1 parent c4470e5
@jezdez jezdez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/auth/models.py
View
2  django/contrib/auth/models.py
@@ -72,7 +72,7 @@ class Meta:
verbose_name = _('permission')
verbose_name_plural = _('permissions')
unique_together = (('content_type', 'codename'),)
- ordering = ('content_type__app_label', 'codename')
+ ordering = ('content_type__app_label', 'content_type__model', 'codename')
def __unicode__(self):
return u"%s | %s | %s" % (
Please sign in to comment.
Something went wrong with that request. Please try again.