Show 'request already sent' while waiting for response.

This commit is contained in:
Adam Kelly 2020-03-13 14:56:50 +00:00
parent 05f5315b98
commit 0e34c74647

View file

@ -1,4 +1,8 @@
{% if not request.user in user.followers.all %}
{% if request.user in user.follower_requests.all %}
<div>
Follow request already sent.
</div>
{% elif not request.user in user.followers.all %}
<form action="/follow/" method="post">
{% csrf_token %}
<input type="hidden" name="user" value="{{ user.username }}"></input>