Ticket #17967: change-password.diff

File change-password.diff, 706 bytes (added by aviraldg, 3 years ago)

patch against [17802]

  • django/contrib/admin/templates/admin/base.html

    diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html
    index 3b50adc..afa218e 100644
    a b  
    3232                {% if docsroot %}
    3333                    <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
    3434                {% endif %}
     35                {% if user.has_usable_password %}
    3536                <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
     37                {% endif $}
    3638                <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
    3739            {% endblock %}
    3840        </div>
Back to Top