Skip to content

Commit

Permalink
Change the way thumbnail source paths are looked up in production mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephrdev committed Feb 13, 2017
1 parent 724a5f1 commit 5fad999
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ultimatethumb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def parse_source(source):
# staticfiles storage doesn't support hashing of filenames.
if not settings.DEBUG:
source = staticfiles_storage.hashed_name(source)

source = find(source)
source = staticfiles_storage.path(source)
else:
source = find(source)
else:
if not source.startswith('/'):
source = default_storage.path(source)
Expand Down

0 comments on commit 5fad999

Please sign in to comment.