Adding CSRF validation will require overriding the :class:`flask_admin.form.BaseForm` by using :attr:`flask_admin.model.BaseModelView.form_base_class`.
Adding CSRF validation will require overriding the :class:`flask_admin.form.BaseForm` by using :attr:`flask_admin.model.BaseModelView.form_base_class`.
...
@@ -287,11 +298,7 @@ For WTForms 1, you can use use Flask-WTF's Form class::
...
@@ -287,11 +298,7 @@ For WTForms 1, you can use use Flask-WTF's Form class::
app.run(debug=True)
app.run(debug=True)
Further reading
****
^^^^^^^^^^^^^^^
For additional documentation, check :mod:`flask_admin.form.rules` module source code (it is quite short) and
look at the `forms example <https://github.com/flask-admin/flask-admin/tree/master/examples/forms>`_ on GitHub.
Using different database backends
Using different database backends
----------------------------------------
----------------------------------------
...
@@ -328,33 +335,7 @@ are dedicated to helping you through this process. See :doc:`model_guidelines`.
...
@@ -328,33 +335,7 @@ are dedicated to helping you through this process. See :doc:`model_guidelines`.