From 323f59091c83f777cb6c9919d502055ac79ca8cb Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Thu, 16 Mar 2017 09:03:45 -0400 Subject: [PATCH] add content block and breadcrumbs_empty block to allow base.html to be reused --- rest_framework/templates/rest_framework/base.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index ef9b026c8..bd87ba8a6 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -63,12 +63,15 @@ {% else %}
  • {{ breadcrumb_name }}
  • {% endif %} + {% empty %} + {% block breadcrumbs_empty %} {% endblock breadcrumbs_empty %} {% endfor %} {% endblock %}
    + {% block content %} {% if 'GET' in allowed_methods %}
    @@ -252,6 +255,7 @@
    {% endif %} {% endif %} + {% endblock content %}