forked from antonagestam/collectfast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force storage.file_overwrite to True
This fixes uploading a static file with the same name twice resulting in a second file with a randomized suffix in the name, and of course the first one never to be updated to the newer version. This is a bit related to antonagestam#30 and basically has the same fix. It's a bit surprising that this never was a problem before, but that's probably because, in contrary to the setting from antonagestam#30, that default in django-storages for this setting is the one we need. This also means that the impact of this change is a lot smaller. It only affects projects which have manually set this setting to False, most likely to prevent user uploads from overwriting each other.
- Loading branch information
Showing
4 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters