Thank you for helping.
My problem is that for some reason my code doesn’t execute my if statement in template:
{% if {{game.player}} == {{user.username}} %}
<a href="/game/stop/">Stop this game</a>
{% else %}
current user: {{ user.username }}
game by: {{ game.player }}
{% endif %}
When the ‘else’ statement is executed user.username is indeed = game.player, but for some reason if statement doesn’t execute. I did try it without the {{ }} around the game.player and with ‘ ‘ just to match the strings. but it wouldn’t work and I am quite confused!
thank you for your time:)
blargie-bla
You want: