Skip to content

Commit 95a03cb

Browse files
Context is removed since 1.11 (#66)
Co-authored-by: iamfrankjim <48273673+iamfrankjim@users.noreply.github.com>
1 parent a6ad042 commit 95a03cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

djangocms_snippet/templatetags/snippet_tags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, snippet_id_varname, *args):
5656

5757
def render(self, context):
5858
"""
59-
:type context: object ``django.template.Context``
59+
:type context: dict
6060
:param context: Context tag object
6161
6262
:rtype: string
@@ -97,7 +97,7 @@ def get_content_render(self, context, instance):
9797
)
9898
else:
9999
t = template.Template(instance.html)
100-
content = t.render(template.Context(context))
100+
content = t.render(context)
101101
except template.TemplateDoesNotExist:
102102
content = _('Template %(template)s does not exist.') % {
103103
'template': instance.template}

0 commit comments

Comments
 (0)