diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html
index 2587567d756..14007aa52e1 100644
--- a/rest_framework/templates/rest_framework/base.html
+++ b/rest_framework/templates/rest_framework/base.html
@@ -22,6 +22,7 @@
+ {% if code_style %}{% endif %}
{% endblock %}
{% endblock %}