diff --git a/smash/web/views/subject.py b/smash/web/views/subject.py index 0c02810cc860edc6d106fd4b54b529ed8bf86461..668346607186f1f5eca9a3e4d9547acc3381a183 100644 --- a/smash/web/views/subject.py +++ b/smash/web/views/subject.py @@ -82,7 +82,6 @@ def subject_edit(request, id): subject_form.save() # check if subject was marked as dead or resigned if 'type' in study_subject_form.changed_data and old_type != study_subject_form.cleaned_data['type']: - SUBJECT_TYPE_CHOICES worker = Worker.get_by_user(request.user) old_value = SUBJECT_TYPE_CHOICES.get(old_type, old_type) new_value = SUBJECT_TYPE_CHOICES.get(study_subject_form.cleaned_data['type'], study_subject_form.cleaned_data['type'])