Ticket #13814: 13814.diff
File 13814.diff, 676 bytes (added by , 14 years ago) |
---|
-
django/contrib/sites/models.py
### Eclipse Workspace Patch 1.0 #P django-trunk
23 23 SITE_CACHE[sid] = current_site 24 24 return current_site 25 25 26 def get_current_or_request(self, request): 27 if Site._meta.installed: 28 site = Site.objects.get_current() 29 else: 30 site = RequestSite(request) 31 return site 32 26 33 def clear_cache(self): 27 34 """Clears the ``Site`` object cache.""" 28 35 global SITE_CACHE