Ticket #9228: sites.diff

File sites.diff, 448 bytes (added by Boo, 16 years ago)

Patch

  • django/contrib/sites/models.py

     
    4242    def __unicode__(self):
    4343        return self.domain
    4444   
     45    def save(self):
     46        super(Site, self).save()
     47        SITE_CACHE[self.pk] = self
     48
    4549    def delete(self):
    4650        pk = self.pk
    4751        super(Site, self).delete()
Back to Top