fixed block inheritance with several levels

This commit is contained in:
Ilya Puchka
2017-11-29 23:03:16 +01:00
parent cf7acea440
commit 93c07e22b1
6 changed files with 39 additions and 13 deletions

View File

@@ -1,2 +1,2 @@
{% extends "child.html" %}
{% block header %}Child Child Header{% endblock %}
{% block header %}{{ block.super }} Child_Child_Header{% endblock %}

View File

@@ -1,3 +1,3 @@
{% extends "base.html" %}
{% block body %}Child {{ block.super }}{% endblock %}
{% block body %}Child_{{ block.super }}{% endblock %}

View File

@@ -1,2 +1,3 @@
{% extends "base.html" %}
{% block body %}Child{% endblock %}
{% block header %}Super_{{ block.super }} Child_Header{% endblock %}
{% block body %}Child_Body{% endblock %}