flask-admin
flask-admin copied to clipboard
'NoneType' object has no attribute 'resolve'
Hello folks,
I have encountered this error and spent hours on looking for a fix. I'm using the bootstrap3 examples and eventually run to this problem. Luckily this site has a fix for it:
https://www.bountysource.com/issues/7953344-nonetype-object-has-no-attribute-resolve
<div class="row">
<div class="col-lg-12">
{{ layout.messages() }}
{% set render_ctx = h.resolve_ctx() %}
{% block body %}{% endblock %}
</div>
</div>
I think this one was fixed in latest Flask-Admin 1.2.0.
I am using 1.2.0 btw.
I also had this issue.
I discovered it when I tried to add form_create_rules to my View.
I had sourced a different base_layout and adding {% set render_ctx = h.resolve_ctx() %} to it fixed my issue.
I am using 1.2.0 as well