diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2012-08-11 17:05:26 -0400 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2012-08-11 17:05:26 -0400 |
| commit | b82eb10b2605477b3e583c9378257a9e6c8fd2ed (patch) | |
| tree | 7a950fda91f292d813d53dac0b12d871baa7740c | |
| parent | 4d9e4c64f1330fbdfe6a7931879deebf7154f403 (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.py | 2 |
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 |
