Fix username in template for custom user models (#6612)

This commit is contained in:
Afnarel 2019-05-02 02:23:23 +02:00 committed by Ryan P Kilby
parent f669395dd8
commit 67d2eabd6c

View File

@ -12,7 +12,7 @@
<div class="modal-body">
{% 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 %}
<div class="text-center">