Commit 2b8d7721 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #642 from pawl/master

Add documentation for import for required()
parents b1fab877 30aec189
......@@ -343,7 +343,8 @@ class BaseModelView(BaseView, ActionsMixin):
list of possible options.
Example::
from wtforms.validators import required
class MyModelView(BaseModelView):
form_args = dict(
name=dict(label='First Name', validators=[required()])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment