Commit cf1ed135 authored by PJ Janse van Rensburg's avatar PJ Janse van Rensburg

Add min_input_length to SQLA example and docs.

parent cc40c6de
......@@ -130,8 +130,11 @@ class PostAdmin(sqla.ModelView):
'fields': (User.username, User.email)
},
'tags': {
'fields': (Tag.name,)
}
'fields': (Tag.name,),
'minimum_input_length': 0,
'placeholder': 'Please select',
'page_size': 5,
},
}
def __init__(self, session):
......
......@@ -671,7 +671,9 @@ class BaseModelView(BaseView, ActionsMixin):
form_ajax_refs = {
'user': {
'fields': ('first_name', 'last_name', 'email'),
'page_size': 10
'placeholder': 'Please select',
'page_size': 10,
'minimum_input_length': 0,
}
}
......
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