Permalink
Browse files

Fixed #1864 -- Changed ContentType repr to str

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 785ada1 commit fe257d49da9a789ec9217e05b4e321ccd360650e @adrianholovaty adrianholovaty committed May 15, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/contenttypes/models.py
View
2 django/contrib/contenttypes/models.py
@@ -31,7 +31,7 @@ class Meta:
ordering = ('name',)
unique_together = (('app_label', 'model'),)
- def __repr__(self):
+ def __str__(self):
return self.name
def model_class(self):

0 comments on commit fe257d4

Please sign in to comment.