Commit 30aec189 authored by Paul Brown's avatar Paul Brown

Add import for required

parent 09982090
...@@ -311,7 +311,8 @@ class BaseModelView(BaseView, ActionsMixin): ...@@ -311,7 +311,8 @@ class BaseModelView(BaseView, ActionsMixin):
list of possible options. list of possible options.
Example:: Example::
from wtforms.validators import required
class MyModelView(BaseModelView): class MyModelView(BaseModelView):
form_args = dict( form_args = dict(
name=dict(label='First Name', validators=[required()]) 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