Skip to content
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

Expand boolean variables within 'with' statement #1518

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

tienne-B
Copy link
Member

The 'with' templatetag does not seem to support boolean operators, as
were used for team registration cards. This commit expands these vars
where used, keeping in mind Django's precedence.

Fixes BACKEND-3CH.

The 'with' templatetag does not seem to support boolean operators, as
were used for team registration cards. This commit expands these vars
where used, keeping in mind Django's precedence.

Fixes BACKEND-3CH.
@sentry-io
Copy link

sentry-io bot commented Jun 21, 2020

Sentry issue: BACKEND-3CH

@czlee
Copy link
Member

czlee commented Jun 22, 2020

rip, how did we miss this? fwiw I actually prefer this anyway, I think it's clearer than with the with tag.

@tienne-B
Copy link
Member Author

I much prefer the with so that it better shows what the logic is to do and if used in various places. Also don't like applying De Morgan as it complicates noticing similarities in logic.

@sentry-io
Copy link

sentry-io bot commented Jun 22, 2020

Sentry issue: BACKEND-3CJ

@czlee
Copy link
Member

czlee commented Jun 22, 2020

Merging, there are still some outstanding edge cases to clean up but this fixes the crash issue so merging to roll out in hotfix 2.4.2.

@czlee czlee merged commit 33b4d72 into TabbycatDebate:hotfix/2.4.2 Jun 22, 2020
@tienne-B tienne-B deleted the BACKEND-3CH branch June 22, 2020 09:14
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