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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -