Fixed #5410 -- Added a __unicode__() method to RequestSite. Thanks, bos

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-09-13 14:40:08 +00:00
parent ed5a91f428
commit a31bbda980
1 changed files with 3 additions and 0 deletions

View File

@ -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.')