Skip to content

Commit

Permalink
docs: fix, errors in BaseModelView docstring (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
XD-DENG authored Mar 29, 2021
1 parent d04ec3c commit 399f922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_appbuilder/baseviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ class MyView(ModelView):
search_form_extra_fields = None
"""
A dictionary containing column names and a WTForm
Form fields to be added to the Add form, these fields do not
Form fields to be added to the search form, these fields do not
exist on the model itself ex::
search_form_extra_fields = {'some_col':BooleanField('Some Col', default=False)}
Expand All @@ -475,7 +475,7 @@ class MyView(ModelView):
class ContactModelView(ModelView):
datamodel = SQLAModel(Contact, db.session)
search_form_query_rel_fields = [('group':[['name',FilterStartsWith,'W']]}
search_form_query_rel_fields = {'group':[['name',FilterStartsWith,'W']]}
"""

Expand Down

0 comments on commit 399f922

Please sign in to comment.