Skip to content

Commit 2d27d9a

Browse files
committed
Merge pull request #3769 from mlissner/master
Fixes #3756, adding the name to the HTML title, if it exists.
2 parents 503687d + f15026b commit 2d27d9a

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)