@register.inclusion_tag('addons/includes/collection_add_widget.html')
@register.function
@jinja2.contextfunction
def collection_add_widget(context, addon, condensed=False):
 c = dict(context.items())
 c.update(locals())
 return c

@ register . inclusion_tag ( 'addons/includes/collection_add_widget.html' ) @ register . function @ jinja2 . contextfunction def collection_add_widget ( context , addon , condensed = False ) : c = dict ( context . items ( ) ) c . update ( locals ( ) ) return c
displays add to collection widget .