From fe257d49da9a789ec9217e05b4e321ccd360650e Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 15 May 2006 04:01:23 +0000 Subject: [PATCH] Fixed #1864 -- Changed ContentType repr to str git-svn-id: http://code.djangoproject.com/svn/django/trunk@2904 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/contenttypes/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):