#19621: templates suppress TypeErrors from comparisons
---------------------------------+--------------------------------------
     Reporter:  leftmoose        |                    Owner:  nobody
         Type:  Bug              |                   Status:  closed
    Component:  Template system  |                  Version:  1.4
     Severity:  Normal           |               Resolution:  wontfix
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by carljm):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => wontfix
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Thanks for the report!

 In general, the philosophy of the Django template language is to suppress
 errors, on the theory that template designers should not be able to cause
 crashes. So I think this is consistent with how the rest of the template
 language operates.

 (Personally, I don't buy the rationale for that philosophy, as it is
 always possible for a template designer to make a site effectively non-
 functional one way or another. But changing the approach of the entire
 template language to error-suppression would require a comprehensive
 review of current behavior and a proposal on the mailing list; it
 shouldn't happen piecemeal via tickets for individual cases.)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19621#comment:1>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to