Skip to content
Snippets Groups Projects
Commit e5933929 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

former value was not set properly

parent db8bc0d0
No related branches found
No related tags found
1 merge request!229Feature/provenance
Pipeline #24062 passed
......@@ -100,7 +100,7 @@ def subject_edit(request, id):
p = Provenance(modified_table = Subject._meta.db_table,
modified_table_id = study_subject.subject.id,
modification_author = worker,
previous_value = study_subject.subject.dead,
previous_value = was_dead,
new_value = True,
modification_description = 'Worker "{}" marks subject "{}" as dead'.format(worker, study_subject.subject),
modified_field = 'dead',
......@@ -112,7 +112,7 @@ def subject_edit(request, id):
p = Provenance(modified_table = StudySubject._meta.db_table,
modified_table_id = study_subject.id,
modification_author = worker,
previous_value = study_subject.resigned,
previous_value = was_resigned,
new_value = True,
modification_description = 'Worker "{}" marks study subject "{}" as resigned from study "{}"'.format(worker, study_subject.nd_number, study_subject.study),
modified_field = 'resigned',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment