Skip to content

Commit 217a81f

Browse files
mirabel-kosotomchristie
authored andcommitted
Use correct label for username field in login template (#4841)
1 parent 5c0f9f1 commit 217a81f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework/templates/rest_framework/login_base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<div id="div_id_username" class="clearfix control-group {% if form.username.errors %}error{% endif %}">
2323
<div class="form-group">
24-
<label for="id_username">Username:</label>
24+
<label for="id_username">{{ form.username.label }}:</label>
2525
<input type="text" name="username" maxlength="100"
2626
autocapitalize="off"
2727
autocorrect="off" class="form-control textinput textInput"
@@ -37,7 +37,7 @@
3737

3838
<div id="div_id_password" class="clearfix control-group {% if form.password.errors %}error{% endif %}">
3939
<div class="form-group">
40-
<label for="id_password">Password:</label>
40+
<label for="id_password">{{ form.password.label }}:</label>
4141
<input type="password" name="password" maxlength="100" autocapitalize="off" autocorrect="off" class="form-control textinput textInput" id="id_password" required>
4242
{% if form.password.errors %}
4343
<p class="text-error">

0 commit comments

Comments
 (0)