Browse files

Fixed #3773 -- Added app_label to Permission.__str__(), so that the a…

…dmin permission list is easier to use with multiple permissions of the same name. Thanks, mrmachine

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed Mar 25, 2007
1 parent f2861da commit 796b2304f306ff32527fc384c9be0ba783b2df05
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/auth/
@@ -45,7 +45,7 @@ class Meta:
ordering = ('content_type', 'codename')
def __str__(self):
return "%s | %s" % (self.content_type,
return "%s | %s | %s" % (self.content_type.app_label, self.content_type,
class Group(models.Model):
"""Groups are a generic way of categorizing users to apply permissions, or some other label, to those users. A user can belong to any number of groups.

0 comments on commit 796b230

Please sign in to comment.