Commit 8a8ddeef authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Remove duplicate code from photos_cards.py

parent 11fc3db3
...@@ -48,9 +48,6 @@ def photo_card(photo): ...@@ -48,9 +48,6 @@ def photo_card(photo):
image_url = get_thumbnail_url(photo.file, image_url = get_thumbnail_url(photo.file,
settings.THUMBNAIL_SIZES['medium']) settings.THUMBNAIL_SIZES['medium'])
if photo.album.shareable:
image_url = get_thumbnail_url(photo.file,
settings.THUMBNAIL_SIZES['medium'])
if photo.rotation > 0: if photo.rotation > 0:
class_name += ' rotate{}'.format(photo.rotation) 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