X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1ca6872afcca0bb6fb4c0c11fdad3b760a2362a1..d1fdac4fa15cca4ed1cab3a908de147fde505af3:/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