mirror of
https://github.com/django/django.git
synced 2025-09-28 21:14:55 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue