diff --git a/djangocms_snippet/templatetags/snippet_tags.py b/djangocms_snippet/templatetags/snippet_tags.py index 903bcfe3..9123c0cc 100644 --- a/djangocms_snippet/templatetags/snippet_tags.py +++ b/djangocms_snippet/templatetags/snippet_tags.py @@ -56,7 +56,7 @@ def __init__(self, snippet_id_varname, *args): def render(self, context): """ - :type context: object ``django.template.Context`` + :type context: dict :param context: Context tag object :rtype: string @@ -97,7 +97,7 @@ def get_content_render(self, context, instance): ) else: t = template.Template(instance.html) - content = t.render(template.Context(context)) + content = t.render(context) except template.TemplateDoesNotExist: content = _('Template %(template)s does not exist.') % { 'template': instance.template}