Permalink
Browse files

Fixed #7115: tweaked ordering on Permission to more closely match the…

… pre-QSRF behavior, which was nice. Thanks, Matthew Flanagan.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
jacobian committed Aug 8, 2008
1 parent 660b909 commit 19bbc74e46ddac5c5f5803182600bd44d310b24f
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/auth/models.py
@@ -78,7 +78,7 @@ class Meta:
verbose_name = _('permission') verbose_name = _('permission')
verbose_name_plural = _('permissions') verbose_name_plural = _('permissions')
unique_together = (('content_type', 'codename'),) unique_together = (('content_type', 'codename'),)
ordering = ('content_type', 'codename') ordering = ('content_type__app_label', 'codename')
def __unicode__(self): def __unicode__(self):
return u"%s | %s | %s" % (self.content_type.app_label, self.content_type, self.name) return u"%s | %s | %s" % (self.content_type.app_label, self.content_type, self.name)

0 comments on commit 19bbc74

Please sign in to comment.