From f4998574d3edd045ef28323b2d496eff58098f90 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Tue, 12 Jan 2010 23:35:54 +0000 Subject: [PATCH] Fixed #11796 - Tweaked ordering of permissions a little more to be even nicer. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12219 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/auth/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index ceab7baf122..3328fe4e96f 100644 --- a/django/contrib/auth/models.py +++ b/django/contrib/auth/models.py @@ -72,7 +72,7 @@ class Permission(models.Model): 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" % (