Skip to content

Commit

Permalink
Merge branch 'main' of github.com:overcastsoftware/wagtailcharts
Browse files Browse the repository at this point in the history
  • Loading branch information
saevarom committed Oct 10, 2024
2 parents 6d8a18b + ac276b9 commit 8bb9b71
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 8bb9b71

Please sign in to comment.