From a3f54cead5c90bc8b3fbc17f6d06681c7b57f291 Mon Sep 17 00:00:00 2001 From: Chris Barna Date: Wed, 1 Apr 2015 21:32:31 -0400 Subject: [PATCH] Actually return url with get_crop. --- cropduster/templatetags/cropduster_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cropduster/templatetags/cropduster_tags.py b/cropduster/templatetags/cropduster_tags.py index bb33186e..d2a36c81 100644 --- a/cropduster/templatetags/cropduster_tags.py +++ b/cropduster/templatetags/cropduster_tags.py @@ -50,7 +50,7 @@ def get_crop(image, crop_name, **kwargs): return None data.update({ - "url": Image.get_file_for_size(image=image, size_name=crop_name), + "url": Image.get_file_for_size(image=image, size_name=crop_name).url, "width": thumb.width, "height": thumb.height, "attribution": image.related_object.attribution,