Commit 284e3c5a authored by Joren Vrancken's avatar Joren Vrancken
Browse files

Merge branch 'duplicated-code' into 'master'

Remove duplicate code from photos_cards.py

See merge request !1167
parents 700ec21f 8a8ddeef
......@@ -48,9 +48,6 @@ def photo_card(photo):
image_url = get_thumbnail_url(photo.file,
settings.THUMBNAIL_SIZES['medium'])
if photo.album.shareable:
image_url = get_thumbnail_url(photo.file,
settings.THUMBNAIL_SIZES['medium'])
if photo.rotation > 0:
class_name += ' rotate{}'.format(photo.rotation)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment