From 7d09812f66543df4c49067e11e57f6db4f62d4f3 Mon Sep 17 00:00:00 2001 From: erikvw Date: Wed, 6 Dec 2023 10:27:35 -0600 Subject: [PATCH] pep8 --- .../clean_fields_modelform_mixin.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/edc_consent/modelform_mixins/consent_modelform_mixin/clean_fields_modelform_mixin.py b/edc_consent/modelform_mixins/consent_modelform_mixin/clean_fields_modelform_mixin.py index 8b034fb..1a02746 100644 --- a/edc_consent/modelform_mixins/consent_modelform_mixin/clean_fields_modelform_mixin.py +++ b/edc_consent/modelform_mixins/consent_modelform_mixin/clean_fields_modelform_mixin.py @@ -36,15 +36,6 @@ def subject_screening(self): "Unable to determine the screening identifier. " f"This should be part of the initial form data. Got {self.cleaned_data}" ) - # try: - # subject_screening = self.subject_screening_model_cls.objects.get( - # screening_identifier=screening_identifier - # ) - # except ObjectDoesNotExist: - # raise forms.ValidationError( - # "Unable to find screening form. Invalid screening identifier. " - # f"Got `{screening_identifier}`" - # ) return get_subject_screening_or_raise(screening_identifier, is_modelform=True) def clean_consent_reviewed(self) -> str: