We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 196dea7 commit 17c7070Copy full SHA for 17c7070
app/participant_portal_api/models.py
@@ -76,12 +76,12 @@ def instance_identifier(self) -> str:
76
77
@property
78
def fake_original_instance(self) -> types.SimpleNamespace:
79
- return json_to_simplenamespace(self.original_data)
+ return json_to_simplenamespace(self.original_data, self.instance_identifier)
80
81
82
def fake_modified_instance(self) -> types.SimpleNamespace:
83
updated_data = apply_diff_to_jsonized_models(self.original_data, self.modification_data)
84
- return json_to_simplenamespace(updated_data)
+ return json_to_simplenamespace(updated_data, self.instance_identifier)
85
86
def apply_modification(self) -> models.Model:
87
apply_diff_to_model(self.modification_data)
0 commit comments