1👍
✅
Django’s template parser is pretty unsophisticated, unlike Python’s. One consequence of this is that you need to use spaces around every operator.
{% if abc.first_name == 'Sophia' %}
Source:stackexchange.com