mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Fix username in template for custom user models (#6612)
This commit is contained in:
parent
f669395dd8
commit
67d2eabd6c
|
@ -12,7 +12,7 @@
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<h4 class="text-center">You are logged in as {{ user.username }}.</h4>
|
<h4 class="text-center">You are logged in as {{ user.get_username }}.</h4>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user