Kaydet (Commit) a31bbda9 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

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
üst ed5a91f4
......@@ -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.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment