In this recipe, we will create custom forms using the forms provided by Flask-Admin. Additionally, we will create a custom action using the custom form.
Creating custom forms and actions
Getting ready
In the previous recipe, we saw that the edit form view for the User record update had no option to update the password for the user. The form looked like the following screenshot:
In this recipe, we will customize this form to allow administrators to update the password for any user.
How to do it...
The implementation of this feature will only require changes to views.py...