1
0
mirror of https://github.com/django/django.git synced 2024-12-31 21:46:05 +00:00

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

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