summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/contrib/sites/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/contrib/sites/models.py b/django/contrib/sites/models.py
index 191d5d0a3e..921cf4ff4d 100644
--- a/django/contrib/sites/models.py
+++ b/django/contrib/sites/models.py
@@ -38,6 +38,9 @@ class RequestSite(object):
def __init__(self, request):
self.domain = self.name = request.META['SERVER_NAME']
+ def __unicode__(self):
+ return self.domain
+
def save(self):
raise NotImplementedError('RequestSite cannot be saved.')