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:
parent
785ada1bc8
commit
fe257d49da
|
@ -31,7 +31,7 @@ class ContentType(models.Model):
|
||||||
ordering = ('name',)
|
ordering = ('name',)
|
||||||
unique_together = (('app_label', 'model'),)
|
unique_together = (('app_label', 'model'),)
|
||||||
|
|
||||||
def __repr__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
def model_class(self):
|
def model_class(self):
|
||||||
|
|
Loading…
Reference in New Issue