From 1755c7a96c83b682be312e5c57dfb50452f480f4 Mon Sep 17 00:00:00 2001 From: Alec Perkins Date: Sat, 8 Sep 2012 15:51:08 -0400 Subject: [PATCH] Add block around Bootstrap styles for easy theming. Instead of overriding the theme in the `extra_style` block, it can be replaced directly. This avoids having to load unnecessary styles. --- djangorestframework/templates/djangorestframework/base.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/djangorestframework/templates/djangorestframework/base.html b/djangorestframework/templates/djangorestframework/base.html index 5f4007c40..558aaaacb 100644 --- a/djangorestframework/templates/djangorestframework/base.html +++ b/djangorestframework/templates/djangorestframework/base.html @@ -8,7 +8,9 @@ - + {% block bootstrap_theme %} + + {% endblock %} {% block extrastyle %}{% endblock %}