switch from jinja2.Undefined to jinja2.StrictUndefined

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
3 years ago
2 years ago

People

(Reporter: willkg, Unassigned)

Tracking

Details

(Whiteboard: p= s=input.2015q4)

(Reporter)

Description

3 years ago
edwin-input
We're currently using jinja2.Undefined for when variables in the templates are undefined. This prints the empty string. Because of that, we never notice when we're using variables that aren't defined in the context in the templates. Ugh.

This bug covers switching to jinja2.StrictUndefined which raises exceptions when you try to use a variable not defined in the context. This will likely unveil a gazillion errors--we should fix those, too.
Whiteboard: p= s=input.2015q3
Making it clear we can't work on this until we finish up the Django 1.8 upgrade and switch to django-jinja.
Depends on: 1146686, 1167194
New quarter!
Whiteboard: p= s=input.2015q3 → p= s=input.2015q4
The Input service has been decommissioned (see bug 1315316) and has been replaced by a redirect to an external vendor (SurveyGizmo). I'm bulk WONTFIXing Input bugs that do not appear to be relevant anymore.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.