Use user.get_short_name and user.get_username in admin header (fixes #121)

This commit is contained in:
David Jean Louis 2013-05-09 10:20:27 +02:00
parent 9c610ab880
commit bf2d102649
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
{% if user.is_active and user.is_staff %}
<div id="user-tools">
{% trans 'Welcome,' %}
<strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.
<strong>{% filter force_escape %}{% firstof user.get_short_name user.first_name user.get_username user.username %}{% endfilter %}</strong>.
{% block userlinks %}
{% url 'django-admindocs-docroot' as docsroot %}
{% if docsroot %}