To reduce the burden and lower the rate of human error. Some models can be made into Meta Models.
Details
For models that can be made into meta models, they should be made so. In this case Model History and Model Notes.
These models are perfect candidates for this as most of the models added to centurion, will have two additional models added due to requiring both history and notes.
A new base model will be required, that will form the basis of the actual data being saved. this base model will be inherited by the meta models.
The following items will be required:
- A class that generate the relevant Meta model
- Each model will require an attribute to determine if they need the meta model
- A single
ViewSet to query the relevant Meta models data
- Permissions to be based off of the Meta model
Tasks
✅ Requirements
To reduce the burden and lower the rate of human error. Some models can be made into
MetaModels.Details
For models that can be made into meta models, they should be made so. In this case Model History and Model Notes.
These models are perfect candidates for this as most of the models added to centurion, will have two additional models added due to requiring both history and notes.
A new base model will be required, that will form the basis of the actual data being saved. this base model will be inherited by the meta models.
The following items will be required:
ViewSetto query the relevant Meta models dataTasks
✅ Requirements
/<parent_model>/<model>i.e./notes/device