1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #4548 -- Added username hint to admin's change_password form.

This commit is contained in:
Oliver Sauder
2016-06-08 17:37:26 +02:00
committed by Tim Graham
parent 686a593aaa
commit 5d8375fe66
2 changed files with 9 additions and 5 deletions

View File

@@ -20,6 +20,7 @@
{% endif %}
{% block content %}<div id="content-main">
<form action="{{ form_url }}" method="post" id="{{ opts.model_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %}
<input type="text" name="username" value="{{ original.get_username }}" style="display: none" />
<div>
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
{% if form.errors %}