Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #18754 -- cache keys created by post_process

Corrected to always generate the cache keys from file names with
forward slashes, not backslashes.
  • Loading branch information...
commit b82eb10b2605477b3e583c9378257a9e6c8fd2ed 1 parent 4d9e4c6
@kmtracey kmtracey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/staticfiles/storage.py
View
2  django/contrib/staticfiles/storage.py
@@ -261,7 +261,7 @@ def post_process(self, paths, dry_run=False, **options):
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
Please sign in to comment.
Something went wrong with that request. Please try again.