Use the right query
This commit is contained in:
parent
8786b5af88
commit
51c7eac4d7
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue