python - Chaining filters in included Django template -


chaining filters in django templates seems work normally, when attempt chain django filters in included templates doesn't.

for example in top level template, works:

<td>{{ q10a.exp|intcomma|default:"☐☐☐,☐☐☐,☐☐☐,☐☐☐.00" }}</td> 

if q10.exp none renders correctly ☐☐☐,☐☐☐,☐☐☐,☐☐☐.00

however when this:

{% include "reports/includes/simplesummary.html" q=q5 %} 

and in simplesummary.html:

<td>{{ q.exp|intcomma|default:"☐☐☐,☐☐☐,☐☐☐,☐☐☐.00" }}</td> 

however, if q5.exp none renders none. if remove |intcomma part, seems work. idea why happens or how can fix this?


Comments