mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +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:
parent
83a99bc28b
commit
edce4128e1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue