mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #26231 -- Used .get_username in admin login template.
This commit is contained in:
committed by
Tim Graham
parent
ee69789f45
commit
bbe136e1a2
@@ -34,7 +34,7 @@
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
<p class="errornote">
|
||||
{% blocktrans with username=request.user.username trimmed %}
|
||||
{% blocktrans with username=request.user.get_username trimmed %}
|
||||
You are authenticated as {{ username }}, but are not authorized to
|
||||
access this page. Would you like to login to a different account?
|
||||
{% endblocktrans %}
|
||||
|
||||
Reference in New Issue
Block a user