Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 759 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 759 Bytes

WTForms-Mongoengine

Build Status

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)