combining if and ifequal in django -
i have 2 variables: isadmin (a boolean) username (a string)
i need evaluate whether administrator or username equals username. tried
{% if isadmin or ifequal username 'xyz' %}
but cannot work.
so how combine check on these 2 variables ?
thanks thomas
you can not combine ifequal
if
can write
{% if isadmin or username == 'xyz' %}
Comments
Post a Comment