summaryrefslogtreecommitdiff
path: root/django/views
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-09-28 20:10:22 +0200
committerClaude Paroz <claude@2xlibre.net>2012-09-28 20:33:05 +0200
commit6c2faaceb0482267cec19da0ff432984028f9d0c (patch)
tree5d62d1d3e058282c5bc7aa4c416c3b458f10d76c /django/views
parent1cd6e04cd4f768bcd4385b75de433d497d938f82 (diff)
Made more extensive use of get_current_site
Refs #15089
Diffstat (limited to 'django/views')
-rw-r--r--django/views/decorators/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/decorators/cache.py b/django/views/decorators/cache.py
index ac8b3752d7..06925c1f4a 100644
--- a/django/views/decorators/cache.py
+++ b/django/views/decorators/cache.py
@@ -12,7 +12,7 @@ def cache_page(*args, **kwargs):
The cache is keyed by the URL and some data from the headers.
Additionally there is the key prefix that is used to distinguish different
cache areas in a multi-site setup. You could use the
- sites.get_current().domain, for example, as that is unique across a Django
+ sites.get_current_site().domain, for example, as that is unique across a Django
project.
Additionally, all headers from the response's Vary header will be taken