Skip to content

add test option to check if variables in template tags are defined #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 42 commits into
base: master
Choose a base branch
from

Conversation

Atanazyy
Copy link
Contributor

closes #504

@Atanazyy Atanazyy requested a review from MasloMaslane as a code owner April 16, 2025 15:28
@MasloMaslane
Copy link
Member

Is there a reason why this shouldn't be always checked?

@Atanazyy
Copy link
Contributor Author

Atanazyy commented Apr 16, 2025

Currently some test fail with this flag, because for example in <a href="{{ item.url }}" id="{{ item.name }}" {{ item.attrs }} class="list-group-item list-group-item-action {% active_url item.url %}"> item.name might not be defined and everything works fine. I want to fix things like that and then set this as default check

@Atanazyy
Copy link
Contributor Author

image
For now quite a lot of tests fail

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.

Undefined Variables in Django Templates Evaluated as 0 or None Without Raising an Error
2 participants