Skip to content

Commit

Permalink
Changed auth.Permission.__str__() to use str() of self.content_type, …
Browse files Browse the repository at this point in the history
…not repr()

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jun 1, 2006
1 parent f10af2d commit a2fceea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/auth/models.py
Expand Up @@ -20,7 +20,7 @@ class Meta:
ordering = ('content_type', 'codename')

def __str__(self):
return "%r | %s" % (self.content_type, self.name)
return "%s | %s" % (self.content_type, self.name)

class Group(models.Model):
name = models.CharField(_('name'), maxlength=80, unique=True)
Expand Down

0 comments on commit a2fceea

Please sign in to comment.