summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-05-15 04:01:23 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-05-15 04:01:23 +0000
commitfe257d49da9a789ec9217e05b4e321ccd360650e (patch)
tree25a230ff8cbf7a722d8edea52328db224a2c6ee3
parent785ada1bc8889072d29023a503486a01ca8b3028 (diff)
Fixed #1864 -- Changed ContentType repr to str
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/contenttypes/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/contenttypes/models.py b/django/contrib/contenttypes/models.py
index eb6029e7d4..87316ae523 100644
--- a/django/contrib/contenttypes/models.py
+++ b/django/contrib/contenttypes/models.py
@@ -31,7 +31,7 @@ class ContentType(models.Model):
ordering = ('name',)
unique_together = (('app_label', 'model'),)
- def __repr__(self):
+ def __str__(self):
return self.name
def model_class(self):