rvinzent / django-dynamic-models

Dynamic Django models allow users to define, edit, and populate their own database schema.
MIT License
154 stars 46 forks source link

Enable dynamic model to behaves with non managed table #54

Closed mattiagiupponi closed 2 years ago

mattiagiupponi commented 2 years ago

In some cases can happen that the table is not created with the dynamic models, but it can be used just to map the existing table coming from an external resource The idea is to add two new settings into the dynamic models lib:

DYNAMIC_MANAGED_MODELS: default -> True -> if False, skip all the update/create method for models and field schema

USE_APPLABEL_IN_TABLE_NAME_PREFIX: default -> True -> if False, use as table name the name provided in the Model schema creation without appending the app_label prefix