1
0
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:
Sjoerd Job Postmus
2016-02-17 15:18:24 +01:00
committed by Tim Graham
parent ee69789f45
commit bbe136e1a2
2 changed files with 5 additions and 1 deletions

View File

@@ -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 %}