diff --git a/wagtailcharts/templatetags/wagtailcharts_tags.py b/wagtailcharts/templatetags/wagtailcharts_tags.py index b1d95a6..58e4dea 100644 --- a/wagtailcharts/templatetags/wagtailcharts_tags.py +++ b/wagtailcharts/templatetags/wagtailcharts_tags.py @@ -3,9 +3,9 @@ register = template.Library() -@register.simple_tag(takes_context=True) -def render_charts(context): - return render_to_string('wagtailcharts/tags/render_charts.html', context=context) +@register.simple_tag +def render_charts(): + return render_to_string('wagtailcharts/tags/render_charts.html') @register.filter() def addspace(val):