mirror of
https://github.com/django/django.git
synced 2025-08-01 09:32:50 +00:00
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
This commit is contained in:
parent
c4470e5ced
commit
f4998574d3
1 changed files with 1 additions and 1 deletions
|
@ -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" % (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue