Skip to content

Filter keyword literal argument - #58

Merged
hewdoe merged 2 commits into
mainfrom
filter-keyword-literal-argument
Nov 17, 2026
Merged

hewdoe merged 2 commits into
mainfrom
filter-keyword-literal-argument

Conversation

@hewdoe

@hewdoe hewdoe commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

See this suggestion
We weren't treating keyword literal assignment values as keyword literals, they were being parsed in as variables. Not strictly wrong, but it would mean we'd have to do some fancy footwork in the consuming application's parser to handle keyword literals as variables (looking for them by text search). This should alleviate that complexity

{{ x|intcomma:False }} and {{ x|default:None }} previously parsed the
argument as dj_variable_name, inconsistent with every other value
position, where True/False/None are dj_keyword_literal.

Assistant-model: Claude Code
@hewdoe
hewdoe requested a lite review from Copilot November 17, 2026 03:50
@hewdoe hewdoe self-assigned this Nov 17, 2026
@hewdoe
hewdoe requested a review from a team as a code owner November 17, 2026 03:50
@hewdoe
hewdoe removed the request for review from Copilot November 17, 2026 03:50

@laurentputz laurentputz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

@hewdoe
hewdoe merged commit 6dfcf3b into main Nov 17, 2026
6 of 7 checks passed
@hewdoe
hewdoe deleted the filter-keyword-literal-argument branch November 17, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants