#19479 closed Bug (duplicate)
The {% include with...%} template tag does not accept boolean as value
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Template system | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | charette.s@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Folks, the following doesn't work:
{% include "some_template.html" with param=True %}
param is not available in some_template.html If I use a number in param, it works.
Change History (1)
comment:1 by , 12 years ago
Cc: | added |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Couldn't reproduce against master:
Prior to django 1.5 the
True
,False
andNone
literals weren't resolving to their Python equivalent in the template system.That's the reason why it doesn't work for you here. For more details see #17229.
Closing as duplicate.