Changed Site model to use str, not repr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2896 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
83a99bc28b
commit
edce4128e1
|
@ -19,5 +19,5 @@ class Site(models.Model):
|
|||
list_display = ('domain', 'name')
|
||||
search_fields = ('domain', 'name')
|
||||
|
||||
def __repr__(self):
|
||||
def __str__(self):
|
||||
return self.domain
|
||||
|
|
Loading…
Reference in New Issue