Author: adrian
Date: 2007-03-25 16:28:59 -0500 (Sun, 25 Mar 2007)
New Revision: 4823

Modified:
   django/trunk/django/contrib/auth/models.py
Log:
Fixed #3773 -- Added app_label to Permission.__str__(), so that the admin 
permission list is easier to use with multiple permissions of the same name. 
Thanks, mrmachine

Modified: django/trunk/django/contrib/auth/models.py
===================================================================
--- django/trunk/django/contrib/auth/models.py  2007-03-25 21:26:44 UTC (rev 
4822)
+++ django/trunk/django/contrib/auth/models.py  2007-03-25 21:28:59 UTC (rev 
4823)
@@ -45,7 +45,7 @@
         ordering = ('content_type', 'codename')
 
     def __str__(self):
-        return "%s | %s" % (self.content_type, self.name)
+        return "%s | %s | %s" % (self.content_type.app_label, 
self.content_type, self.name)
 
 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.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to