Skip to content

Commit

Permalink
Fix request context error as reported by #19
Browse files Browse the repository at this point in the history
  • Loading branch information
saevarom committed Sep 18, 2024
1 parent 2908ade commit ac276b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wagtailcharts/templatetags/wagtailcharts_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ac276b9

Please sign in to comment.