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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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