Coverage for backend/django/core/auxiliary/models/FlowsheetHistoryModel.py: 100%
4 statements
« prev ^ index » next coverage.py v7.10.7, created at 2026-07-22 05:22 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2026-07-22 05:22 +0000
1class FlowsheetHistoryModel:
2 """Mark database state owned by the flowsheet undo/redo journal.
4 The marker is deliberately fieldless, so adopting the shared history
5 infrastructure never changes a model's database schema. Models using it
6 must expose a concrete ``flowsheet_state`` foreign key.
7 """
9 flowsheet_history_soft_delete_field: str | None = None
12class DependentFlowsheetHistoryModel:
13 """Mark compatibility state captured only inside a flowsheet edit.
15 Dependent models participate when an existing flowsheet action changes
16 them, but their own endpoints never start undo/redo operations.
17 """
19 flowsheet_history_soft_delete_field: str | None = None