Ticket #5410: unicode-RequestSite.patch

File unicode-RequestSite.patch, 472 bytes (added by bos, 17 years ago)

add unicode method

  • django/contrib/sites/models.py

     
    3838    def __init__(self, request):
    3939        self.domain = self.name = request.META['SERVER_NAME']
    4040
     41    def __unicode__(self):
     42        return self.domain
     43
    4144    def save(self):
    4245        raise NotImplementedError('RequestSite cannot be saved.')
    4346
Back to Top