WTForms for Mongoengine documents
Project description
WTFMongoengine creates WTForms Form classes from Mongoengine Document objects. Example:
from mongoengine import document, fields from wtfmongoengine.forms import DocumentForm class User(document.Document): email = fields.StringField(required=True) first_name = fields.StringField(max_length=50) last_name = fields.StringField(max_length=50) class UserForm(DocumentForm): class Meta: document_class = User # In case you only want to include ``first_name`` in the form # fields = ('first_name',) # In case you want to exclude ``email`` from the form # exclude = ('email',)
Changelog
0.1
Initial release.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
WTFMongoengine-0.1.tar.gz
(3.3 kB
view hashes)