diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-09-13 14:40:08 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-09-13 14:40:08 +0000 |
| commit | a31bbda980b07fd54123ef44f8df1f0621c3677b (patch) | |
| tree | 4e276138b6606ced9938e74673db10c1d9847c1d | |
| parent | ed5a91f42896a3f05b8995096d5e1d9fd65ba428 (diff) | |
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
| -rw-r--r-- | django/contrib/sites/models.py | 3 |
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.') |
