Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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: http://code.djangoproject.com/svn/django/trunk@4823 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 796b2304f306ff32527fc384c9be0ba783b2df05 1 parent f2861da
Adrian Holovaty authored March 25, 2007

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
@@ -45,7 +45,7 @@ class Meta:
45 45
         ordering = ('content_type', 'codename')
46 46
 
47 47
     def __str__(self):
48  
-        return "%s | %s" % (self.content_type, self.name)
  48
+        return "%s | %s | %s" % (self.content_type.app_label, self.content_type, self.name)
49 49
 
50 50
 class Group(models.Model):
51 51
     """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 notes on commit 796b230

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