Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #7467 -- Added a template block to override the admin welcome m…

…essage.

Thanks Jeff Kowalczyk for the suggestion and rctay for the patch.
  • Loading branch information...
commit 2bc51438664b5ffbbd1430b4f9f3307f18b2b9db 1 parent 30fc49a
@timgraham timgraham authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 django/contrib/admin/templates/admin/base.html
View
6 django/contrib/admin/templates/admin/base.html
@@ -26,8 +26,10 @@
</div>
{% if user.is_active and user.is_staff %}
<div id="user-tools">
- {% trans 'Welcome,' %}
- <strong>{% firstof user.get_short_name user.get_username %}</strong>.
+ {% block welcome-msg %}
+ {% trans 'Welcome,' %}
+ <strong>{% firstof user.get_short_name user.get_username %}</strong>.
+ {% endblock %}
{% block userlinks %}
{% url 'django-admindocs-docroot' as docsroot %}
{% if docsroot %}
Please sign in to comment.
Something went wrong with that request. Please try again.