X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1f9103b1e752a6c41d2304bf5e41a7d6ae0c45c8..892198abd0775399c80104d6ee16aa0f1092045d:/apps/picture/templatetags/picture_tags.py diff --git a/apps/picture/templatetags/picture_tags.py b/apps/picture/templatetags/picture_tags.py index 3fe5b360c..ef297c9eb 100644 --- a/apps/picture/templatetags/picture_tags.py +++ b/apps/picture/templatetags/picture_tags.py @@ -6,21 +6,23 @@ register = template.Library() @register.inclusion_tag('picture/picture_short.html', takes_context=True) def picture_short(context, picture): - return { + context.update({ 'picture': picture, 'main_link': picture.get_absolute_url(), # 'related': picture.related_info(), 'request': context.get('request'), 'tags': split_tags(picture.tags), - } + }) + return context @register.inclusion_tag('picture/picture_wide.html', takes_context=True) def picture_wide(context, picture): - return { + context.update({ 'picture': picture, 'main_link': picture.get_absolute_url(), # 'related': picture.related_info(), 'request': context.get('request'), 'tags': split_tags(picture.tags), - } + }) + return context