Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jannis Leidel authored January 12, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/auth/models.py
2  django/contrib/auth/models.py
@@ -72,7 +72,7 @@ class Meta:
72 72
         verbose_name = _('permission')
73 73
         verbose_name_plural = _('permissions')
74 74
         unique_together = (('content_type', 'codename'),)
75  
-        ordering = ('content_type__app_label', 'codename')
  75
+        ordering = ('content_type__app_label', 'content_type__model', 'codename')
76 76
 
77 77
     def __unicode__(self):
78 78
         return u"%s | %s | %s" % (

0 notes on commit f499857

Please sign in to comment.
Something went wrong with that request. Please try again.