dpgaspar / Flask-AppBuilder

Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/
BSD 3-Clause "New" or "Revised" License
4.71k stars 1.36k forks source link

feat: allow GeneralModelConverter to be overridden #2259

Open eqperes opened 4 months ago

eqperes commented 4 months ago

Description

It may be useful to override GeneralModelConverter to implement a different logic for automatic form creation.
Currently this class is used directly in the code, which makes this impossible. The current PR add a class variable to BaseModelView which defines the model converter class to be used (default GeneralModelConverter)

ADDITIONAL INFORMATION