WTForms-Mongoengine
WTForms-Mongoengine is a fork of Flask-Mongoengine without the Flask dependency.
This package provides additional fields like:
ModelSelectField
ModelSelectMultipleField
QuerySetSelectField
QuerySetSelectMultipleField
Also, you can generate forms from models with model_form
.
Examples:
from wtforms_mongoengine import model_form
from mongoengine import Document, StringField
class Foo(Document):
bar = StringField()
Form = model_form(Foo)