mirror of https://github.com/django/django.git
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:
parent
ed5a91f428
commit
a31bbda980
|
@ -38,6 +38,9 @@ class RequestSite(object):
|
||||||
def __init__(self, request):
|
def __init__(self, request):
|
||||||
self.domain = self.name = request.META['SERVER_NAME']
|
self.domain = self.name = request.META['SERVER_NAME']
|
||||||
|
|
||||||
|
def __unicode__(self):
|
||||||
|
return self.domain
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
raise NotImplementedError('RequestSite cannot be saved.')
|
raise NotImplementedError('RequestSite cannot be saved.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue