Don't display "change password" button on other profile pages

This commit is contained in:
Yohann D'ANELLO 2020-08-15 20:59:45 +02:00
parent d6fd925fdd
commit 430036bfc2
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
<dt class="col-xl-6">{% trans 'username'|capfirst %}</dt> <dt class="col-xl-6">{% trans 'username'|capfirst %}</dt>
<dd class="col-xl-6">{{ user_object.username }}</dd> <dd class="col-xl-6">{{ user_object.username }}</dd>
{% if user_object.pk == user_object.pk %} {% if user_object.pk == user.pk %}
<dt class="col-xl-6">{% trans 'password'|capfirst %}</dt> <dt class="col-xl-6">{% trans 'password'|capfirst %}</dt>
<dd class="col-xl-6"> <dd class="col-xl-6">
<a class="small" href="{% url 'password_change' %}"> <a class="small" href="{% url 'password_change' %}">