1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

Fixed #35742 -- Removed hardcoded "username" references in admin templates.

This commit is contained in:
antoliny0919 2024-10-08 09:27:20 +02:00 committed by Ryan Cheley
parent 3f0bbe3f26
commit 8961803707
3 changed files with 3 additions and 5 deletions

View File

@ -3,9 +3,7 @@
{% block form_top %} {% block form_top %}
{% if not is_popup %} {% if not is_popup %}
<p>{% translate 'First, enter a username and password. Then, youll be able to edit more user options.' %}</p> <p>{% translate "After you've created a user, youll be able to edit more user options." %}</p>
{% else %}
<p>{% translate "Enter a username and password." %}</p>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block extrahead %} {% block extrahead %}

View File

@ -57,7 +57,7 @@
{% url 'admin_password_reset' as password_reset_url %} {% url 'admin_password_reset' as password_reset_url %}
{% if password_reset_url %} {% if password_reset_url %}
<div class="password-reset-link"> <div class="password-reset-link">
<a href="{{ password_reset_url }}">{% translate 'Forgotten your password or username?' %}</a> <a href="{{ password_reset_url }}">{% translate 'Forgotten your login credentials?' %}</a>
</div> </div>
{% endif %} {% endif %}
<div class="submit-row"> <div class="submit-row">

View File

@ -5,7 +5,7 @@
{% block reset_link %} {% block reset_link %}
{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} {{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
{% endblock %} {% endblock %}
{% translate 'Your username, in case youve forgotten:' %} {{ user.get_username }} {% translate 'In case youve forgotten, you are:' %} {{ user.get_username }}
{% translate "Thanks for using our site!" %} {% translate "Thanks for using our site!" %}