Skip to content

Commit f15026b

Browse files
committed
Fixes #3756, adding the name to the HTML title, if it exists.
1 parent ce77ed8 commit f15026b

File tree

1 file changed

+1
-1
lines changed
  • rest_framework/templates/rest_framework

1 file changed

+1
-1
lines changed

rest_framework/templates/rest_framework/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<meta name="robots" content="NONE,NOARCHIVE" />
1313
{% endblock %}
1414

15-
<title>{% block title %}Django REST framework{% endblock %}</title>
15+
<title>{% block title %}{% if name %}{{ name }} – {% endif %}Django REST framework{% endblock %}</title>
1616

1717
{% block style %}
1818
{% block bootstrap_theme %}

0 commit comments

Comments
 (0)