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:
Adrian Holovaty 2006-05-11 17:51:30 +00:00
parent 83a99bc28b
commit edce4128e1
1 changed files with 1 additions and 1 deletions

View File

@ -19,5 +19,5 @@ class Site(models.Model):
list_display = ('domain', 'name') list_display = ('domain', 'name')
search_fields = ('domain', 'name') search_fields = ('domain', 'name')
def __repr__(self): def __str__(self):
return self.domain return self.domain