Commit b879c2f1 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #287 from pythonhub/master

Fix "NoneType" has no attr 'get' on subdocumments
parents 822cd2ef 7092764f
......@@ -9,7 +9,6 @@ from flask.ext.admin._compat import iteritems, string_types
import mongoengine
import gridfs
from mongoengine.fields import GridFSProxy, ImageGridFsProxy
from mongoengine.connection import get_db
from bson.objectid import ObjectId
......@@ -98,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