summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-06-01 03:33:34 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-06-01 03:33:34 +0000
commita2fceea1e36a10e45a99f27f8595a6f7f0ca04cf (patch)
treea55fb8dff4e65713235643cd4c3d23748f8b94d2
parentf10af2de24e2ed4df4173c25a11e94207b4a3847 (diff)
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
-rw-r--r--django/contrib/auth/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
index cea7a694c9..44d7d9ffe8 100644
--- a/django/contrib/auth/models.py
+++ b/django/contrib/auth/models.py
@@ -20,7 +20,7 @@ class Permission(models.Model):
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)