Skip to content

Fix TemplateSyntaxError caused by django-tables2 2.9.0 tag rename#1500

Open
phycodurus wants to merge 2 commits intodevfrom
1499-django-template290-required-changes
Open

Fix TemplateSyntaxError caused by django-tables2 2.9.0 tag rename#1500
phycodurus wants to merge 2 commits intodevfrom
1499-django-template290-required-changes

Conversation

@phycodurus
Copy link
Copy Markdown
Member

django-tables2 2.9.0 renamed its {% querystring %} template tag to {% querystring_replace %} to avoid shadowing Django 5.1+'s (new) built-in {% querystring %} tag.

This commit updates all {% querystring %} calls in bootstrap_htmx.html to use the renamed {% querystring_replace %} tag from django-tables2.

I've updated pyproject.toml to require django-tables >=2.9.0 the version where the change was made.

Closes #1499

django-tables2 2.9.0 renamed its {% querystring %} template tag to
{% querystring_replace %} to avoid shadowing Django 5.1+'s built-in
{% querystring %} tag.

This commit updates all {% querystring %} calls in bootstrap_htmx.html
to use the renamed {% querystring_replace %} tag from django-tables2.
@phycodurus phycodurus requested review from Fingel and jchate6 April 6, 2026 21:18
@phycodurus phycodurus linked an issue Apr 6, 2026 that may be closed by this pull request
@phycodurus phycodurus moved this to Needs Review in TOM Toolkit Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

django-template2.9.0 required changes

1 participant