WTFMongoengineWTForms for Mongoengine documents | |
Download |
WTFMongoengine Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Orne Brocaar
- Publisher web site:
- http://brocaar.com
WTFMongoengine Tags
WTFMongoengine Description
WTFMongoengine is a Python module that creates WTForms Form classes from Mongoengine Document objects. Example:from mongoengine import document, fieldsfrom wtfmongoengine.forms import DocumentFormclass User(document.Document): first_name = fields.StringField( verbose_name='First name', max_length=50, required=True, ) last_name = fields.StringField( verbose_name='Last name', max_length=50, required=False, ) email = fields.EmailField( verbose_name='E-mail address', required=True, )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',)Product's homepage
WTFMongoengine Related Software