In the previous recipe, we learned how to get started with the Flask-Admin extension to create admin interfaces/views for our application. In this recipe, we will examine how to implement admin views for our existing models with the facilities to perform CRUD operations.
Registering models with Flask-Admin
Getting ready
We will extend our application from the previous recipe to include an admin interface for the User model.
How to do it...
Again, with Flask-Admin, registering a model with the admin interface is very easy; perform the following steps:
- Just add the following...