1
0
Fork 0

Follow button snippet

This commit is contained in:
Mouse Reeve 2020-02-22 12:57:13 -08:00
parent 5b13959850
commit 808ca0bd60
4 changed files with 25 additions and 32 deletions

View file

@ -4,10 +4,7 @@
{% for result in results %}
<div>
<h2>{{ result.username }}</h2>
<form action="/follow/{{ result.username }}" method="post">
{% csrf_token %}
<input type="submit" value="Follow"></input>
</form>
{% include 'snippets/follow_button.html' with user=result %}
</div>
{% endfor %}
</div>