Commit cf2df326 authored by Alexander Solovyov's avatar Alexander Solovyov

layout example: resolve_ctx should be called

Without that edit/create can break when using rules
parent 2872c779
...@@ -21,7 +21,10 @@ ...@@ -21,7 +21,10 @@
<h2 id="brand">{{ admin_view.name|capitalize }}</h2> <h2 id="brand">{{ admin_view.name|capitalize }}</h2>
{% endblock %} {% endblock %}
{{ layout.messages() }} {{ layout.messages() }}
{% block body %}{% endblock %}
{% set render_ctx = h.resolve_ctx() %}
{% block body %}{% endblock %}
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment