In the template, use an
if condition that checks your receiver and sender for a particular message.
Something like
{% if abc.receiver == request.user %}
{% endif %}
Similarly you should be able to do it for abc.sender.
You'll need to pass current logged in user in the context(in your view).