Skip to content
Snippets Groups Projects
Commit e2ce3c33 authored by Carlos Vega's avatar Carlos Vega
Browse files

added new field request_path to old provenance creations

parent f40191bc
No related branches found
No related tags found
1 merge request!266Resolve "Record who exports information and restrict who can export info."
......@@ -95,6 +95,7 @@ def subject_edit(request, id):
modification_description = 'Worker "{}" changed study subject "{}" from "{}" to "{}"'.format(worker,
study_subject.subject, old_value, new_value),
modified_field = 'type',
request_path=request.path
)
p.save()
if subject_form.cleaned_data['dead'] and not was_dead:
......@@ -106,6 +107,7 @@ def subject_edit(request, id):
new_value = True,
modification_description = 'Worker "{}" marks subject "{}" as dead'.format(worker, study_subject.subject),
modified_field = 'dead',
request_path=request.path
)
study_subject.subject.mark_as_dead()
p.save()
......@@ -118,6 +120,7 @@ def subject_edit(request, id):
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',
request_path=request.path
)
study_subject.mark_as_resigned()
p.save()
......
......@@ -101,6 +101,7 @@ def visit_mark(request, id, as_what):
new_value = True,
modification_description = 'Worker "{}" marked visit from "{}" as finished'.format(worker, visit.subject),
modified_field = 'is_finished',
request_path=request.path
)
visit.mark_as_finished()
p.save()
......
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