## π Switching Model Inheritance Checklist - [x] Switch the inherited model to `from core.models.centurion import CenturionModel` - [x] Add Model to dict in `app/core/signal/centurion_model_migrate.py` _app_label, model_name, old_history, old_notes_ - Model Class: - [x] Remove method `save_history` - [x] Remove any field named: - `id` - `model_notes` - `organization` - `created` - ## π‘ run `makemigrations` just in case field(s) change - [x] Refactor any logic in method `save` to be located in either `clean` or `clean_fields` - [x] Remove the `save` method - [x] Remove any `delete method` - [ ] Add Namespace to modules `url_api.py` _uncomment `app_name` and ensure set to the module name_ - [x] Update urlroute basename to format `_api_<model_name>` - History: - [x] Remove Serializer - [x] Remove History Tests - [x] Add history model import to `models/__init__.py` - [x] Migrate History - [ ] Remove History model - Notes: - [x] Remove Serializer - [x] Remove Notes Tests - [x] Remove Notes URL Route - [x] Remove Notes ViewSet - [x] Add notes model import to `models/__init__.py` - [x] Migrate Notes - [ ] Remove Notes Model - [x] Remove imports that are un-used - Tests (#729): - [x] Unit - Update Model, #735 - [ ] Functional - Update API Fields #730
π Switching Model Inheritance Checklist
Switch the inherited model to
from core.models.centurion import CenturionModelAdd Model to dict in
app/core/signal/centurion_model_migrate.pyapp_label, model_name, old_history, old_notesModel Class:
save_historyidmodel_notesorganizationcreatedπ‘ run
makemigrationsjust in case field(s) changesaveto be located in eithercleanorclean_fieldssavemethoddelete methodurl_api.pyuncommentapp_nameand ensure set to the module name_api_<model_name>History:
models/__init__.pyNotes:
models/__init__.pyRemove imports that are un-used
Tests (Refactor All Tests to use PyTest not unittestΒ #729):