Fixed #1864 -- Changed ContentType repr to str

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-05-15 04:01:23 +00:00
parent 785ada1bc8
commit fe257d49da
1 changed files with 1 additions and 1 deletions

View File

@ -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):