Using cache middleware instead of various caching micro-strategies,
[wolnelektury.git] / apps / picture / templatetags / picture_tags.py
index 6282610..7e464fa 100644 (file)
@@ -12,23 +12,11 @@ register = template.Library()
 
 cropper = CustomCroppingEngine()
 
-@register.inclusion_tag('picture/picture_short.html', takes_context=True)
-def picture_short(context, picture):
-    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):
     context.update({
         'picture': picture,
         'main_link': picture.get_absolute_url(),
-        # 'related': picture.related_info(),
         'request': context.get('request'),
         'tags': split_tags(picture.tags),
         })