Use the right query

This commit is contained in:
Víðir Valberg Guðmundsson 2016-07-05 23:47:08 +02:00
parent 8786b5af88
commit 51c7eac4d7

View file

@ -9,7 +9,7 @@
<hr />
{% if user in village.users.all %}
{% if user == village.contact %}
<a href="{% url 'villages:update' slug=village.slug %}">Edit</a>
{% endif %}