Commit 7092764f authored by Bruno Rocha's avatar Bruno Rocha

form_subdocuments should be an empty dict

in this line  https://github.com/mrjoes/flask-admin/blob/master/flask_admin/contrib/mongoengine/form.py#L44
None causes "NoneType" has no attr 'get'
parent b5551226
......@@ -97,7 +97,7 @@ class ModelView(BaseModelView):
List of allowed search field types.
"""
form_subdocuments = None
form_subdocuments = {}
"""
Subdocument configuration options.
......
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