diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2012-04-28 22:22:22 -0700 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2012-04-28 22:22:22 -0700 |
| commit | d20fbf46ba8dbb3339b0e79ac140e066ba3e8b02 (patch) | |
| tree | 1f140572d9d088e1f3dc1add5d787015d3f8a6cd | |
| parent | 97c899284000df8d733f5cff7ec8e8406a455c8c (diff) | |
| parent | 9bea85795705d015cdadc82c68b99196a8554f5c (diff) | |
Merge pull request #17 from aviraldg/fix_17967
Fixed #17967: Hide "Change Password" link in admin if user.has_usable_password is False.
| -rw-r--r-- | django/contrib/admin/templates/admin/base.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index 6e2de51440..3ebec911ed 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -32,7 +32,9 @@ {% if docsroot %} <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} + {% if user.has_usable_password %} <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> / + {% endif $} <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a> {% endblock %} </div> |
