Last active
August 29, 2015 14:00
-
-
Save ericwilson/11336102 to your computer and use it in GitHub Desktop.
Django template's "with" statement to calculate values
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
{% if photo.ispromo %} | |
{% cloudinary photo.original_image_id width=photo.width height=photo.height crop="fill" angle='exif' gravity='faces' border="4px_solid_black" %} | |
{% else %} | |
{% cloudinary photo.original_image_id width=photo.width height=photo.height crop="fill" angle='exif' gravity='faces' %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment