Answer the question
In order to leave comments, you need to log in
How to get subfield value in mongo base when using flask-admin?
I have a mongo base with the following structure:
{
card: {
title: {
type: String,
default: "Course title"
}
}
}
{
{
"title": "fgd"
}
}
conn = pymongo.MongoClient(uri)
db = conn.get_default_database()
class CoursesForm(form.Form):
title = fields.TextField('Title')
class CoursesView(ModelView):
column_list = ('title')
form = CoursesForm
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question