flask-admin icon indicating copy to clipboard operation
flask-admin copied to clipboard

'NoneType' object has no attribute 'resolve'

Open christopher-abastar opened this issue 10 years ago • 3 comments

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>

christopher-abastar avatar Jul 06 '15 04:07 christopher-abastar

I think this one was fixed in latest Flask-Admin 1.2.0.

mrjoes avatar Jul 06 '15 04:07 mrjoes

I am using 1.2.0 btw.

christopher-abastar avatar Jul 07 '15 03:07 christopher-abastar

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

Cabalist avatar Aug 24 '15 04:08 Cabalist