Changed auth.Permission.__str__() to use str() of self.content_type, not repr()

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-06-01 03:33:34 +00:00
parent f10af2de24
commit a2fceea1e3
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class Permission(models.Model):
ordering = ('content_type', 'codename') ordering = ('content_type', 'codename')
def __str__(self): def __str__(self):
return "%r | %s" % (self.content_type, self.name) return "%s | %s" % (self.content_type, self.name)
class Group(models.Model): class Group(models.Model):
name = models.CharField(_('name'), maxlength=80, unique=True) name = models.CharField(_('name'), maxlength=80, unique=True)