#17664: {% if %} template tag silences exceptions inconsistently
-------------------------------------+-------------------------------------
Reporter: Tai Lee | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: smart if tag | Triage Stage: Accepted
queryset exception silenced |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by pascal chambon):
Apart from the "string_if_invalid" issue, {% if %} tags also seem to
silence nasty exceptions (RuntimeError etc.) as soon as there are
operators, under Django==1.10.5 :
{% if participant_challenge.list.0.role_participant %} --> raises
server error (due to bug in role_participant())
{% if participant_challenge.list.0.role_participant == 1 %} --> does
not raise anything
Is it an expected behaviour ?
--
Ticket URL: <https://code.djangoproject.com/ticket/17664#comment:18>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.588de6fbea8d4a2f9230ff1c17585481%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.