Skip to content

Commit

Permalink
Merge pull request #544 from Takiro/patch-1
Browse files Browse the repository at this point in the history
add alias name to the thumbnail options (fixes #543)
  • Loading branch information
jrief committed May 17, 2020
2 parents 159f0fc + d7b84f5 commit 208057c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions easy_thumbnails/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def __getitem__(self, alias):
options = aliases.get(alias, target=self.alias_target)
if not options:
raise KeyError(alias)
options['ALIAS'] = alias
return self.get_thumbnail(options, silent_template_exception=True)

def get_options(self, thumbnail_options, **kwargs):
Expand Down

0 comments on commit 208057c

Please sign in to comment.