Django - Template with 'if x in list' not working
You can. But you can't use a list literal in templates. Either generate the list in the view, or avoid using if ... in ...
.
You can. But you can't use a list literal in templates. Either generate the list in the view, or avoid using if ... in ...
.