class Customer(Document):
country = StringField(validation=lambda value: value in ['DE', 'AT', 'CH'])
Replaced some str() with unicode() for i18n reasons.
|
||
|---|---|---|
| .. | ||
| connecting.rst | ||
| defining-documents.rst | ||
| document-instances.rst | ||
| index.rst | ||
| installing.rst | ||
| querying.rst | ||