1👍
✅
True
and False
are not defined in the template context by default, and by the normal template language rules, non-existent names are treated as False. Try passing 0 and 1 instead.
Source:stackexchange.com