summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2012-08-11 17:05:26 -0400
committerKaren Tracey <kmtracey@gmail.com>2012-08-11 17:05:26 -0400
commitb82eb10b2605477b3e583c9378257a9e6c8fd2ed (patch)
tree7a950fda91f292d813d53dac0b12d871baa7740c
parent4d9e4c64f1330fbdfe6a7931879deebf7154f403 (diff)
Fixed #18754 -- cache keys created by post_process
Corrected to always generate the cache keys from file names with forward slashes, not backslashes.
-rw-r--r--django/contrib/staticfiles/storage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py
index 2ca54dde71..3b431edf94 100644
--- a/django/contrib/staticfiles/storage.py
+++ b/django/contrib/staticfiles/storage.py
@@ -261,7 +261,7 @@ class CachedFilesMixin(object):
hashed_name = force_text(saved_name.replace('\\', '/'))
# and then set the cache accordingly
- hashed_paths[self.cache_key(name)] = hashed_name
+ hashed_paths[self.cache_key(name.replace('\\', '/'))] = hashed_name
yield name, hashed_name, processed
# Finally set the cache