Search code examples
pythonflaskflask-sqlalchemyflask-wtformsflask-admin

How to override the admin model creation form in flask


My model (called magazine) has a string field that refers to the location of the image on the hard drive. In flask-admin however, I would like to upload an image to the magazine object instead of a string. Is there a way to specify an image in the model instead of a string?


Solution

  • Don't use flask-admin, create the routes and templates yourself so you will have much more freedom with forms