Actually, I am new in Django so I don't understand why if else statement doesn't work here. Is there anything super wrong with this code?
{%extends 'main/base.html'%}
{%block title%}
{{ title }}
{%endblock%}
{%block content%}
<div class="container-fluid">
<h2>{{user.first_name}}</h2>
<p>{{user.second_name}}</p>
<div class="col">
{%for recel in receipts%}
{%if recel.author is user.username%}
<h2>Receipt: {{recel.title}}</h2>
<h4>Doctor: {{recel.author}}</h4>
{%else%}
<span></span>
{%endif%}
{%endfor%}
</div>
</div>
{%endblock%}