Author: adrian
Date: 2007-09-13 09:40:08 -0500 (Thu, 13 Sep 2007)
New Revision: 6125
Modified:
django/trunk/django/contrib/sites/models.py
Log:
Fixed #5410 -- Added a __unicode__() method to RequestSite. Thanks, bos
Modified: django/trunk/django/contrib/sites/models.py
===================================================================
--- django/trunk/django/contrib/sites/models.py 2007-09-13 14:38:25 UTC (rev
6124)
+++ django/trunk/django/contrib/sites/models.py 2007-09-13 14:40:08 UTC (rev
6125)
@@ -38,6 +38,9 @@
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.')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---