Skip to content

Commit d5d81bb

Browse files
committed
Fix image media tag
- temporary solution
1 parent 8d8de63 commit d5d81bb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

apps/news/templatetags/nginx_image.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ def thumbnail(image_url, width="-", height="-", crop=False):
1616
url = image_url.url
1717
return url
1818
method = "crop" if crop else "resize"
19-
if not settings.DEBUG:
20-
url = "/{method}/{w}/{h}".format(
21-
method=method,
22-
w=width if width else "-",
23-
h=height if height else "-")
24-
else:
25-
url = ""
19+
url = ""
2620
if isinstance(image_url, FieldFile):
2721
if getattr(image_url, 'name', None) and hasattr(image_url, 'url'):
2822
url += image_url.url

0 commit comments

Comments
 (0)