From b82eb10b2605477b3e583c9378257a9e6c8fd2ed Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Sat, 11 Aug 2012 17:05:26 -0400 Subject: [PATCH] Fixed #18754 -- cache keys created by post_process Corrected to always generate the cache keys from file names with forward slashes, not backslashes. --- django/contrib/staticfiles/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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