1
0
mirror of https://github.com/django/django.git synced 2025-01-22 00:02:15 +00:00

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

View File

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