Django ifequal problem comparing 2 datatypes -
post.dys string variable , day.day integer.
both have same value, there no output expected.
i think it's variable-type problem, i'm not sure.
how can solved?
{% ifequal post.days|slugify day.day|slugify %} test {% endifequal %}
yes, 2 variables should same type work properly. see manual page python , django. may cast variable same type using str() function in view, example.
Comments
Post a Comment