From edce4128e14042c28886bb9ab12d92bf83c5b704 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 11 May 2006 17:51:30 +0000 Subject: [PATCH] Changed Site model to use str, not repr git-svn-id: http://code.djangoproject.com/svn/django/trunk@2896 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/sites/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/sites/models.py b/django/contrib/sites/models.py index 861c3b26eb..df93c543d2 100644 --- a/django/contrib/sites/models.py +++ b/django/contrib/sites/models.py @@ -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