#26365: template option "string_if_invalid" can't find error location whit
including html
---------------------------------+--------------------------------------
     Reporter:  JosephDev        |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  Template system  |                  Version:  1.9
     Severity:  Normal           |               Resolution:
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------

Comment (by timgraham):

 What version of Django are you using? On Django 1.8.x and Django 1.9.x,
 the sample project is crashing with:
 {{{
   File "/home/tim/code/django/django/template/base.py", line 1043, in
 render
     output = self.filter_expression.resolve(context)
   File "/home/tim/code/django/django/template/base.py", line 716, in
 resolve
     if '%s' in string_if_invalid:
 TypeError: argument of type 'bool' is not iterable
 }}}
 If I change the value to a string, e.g. `'string_if_invalid': 'fooo',`,
 I'm seeing that value in the homepage output.

--
Ticket URL: <https://code.djangoproject.com/ticket/26365#comment:2>
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.e3b783257576e7d3680b2c1140c27054%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to