Don't display "change password" button on other profile pages
This commit is contained in:
parent
d6fd925fdd
commit
430036bfc2
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@
|
|||
<dt class="col-xl-6">{% trans 'username'|capfirst %}</dt>
|
||||
<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>
|
||||
<dd class="col-xl-6">
|
||||
<a class="small" href="{% url 'password_change' %}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue