diff --git a/edc_consent/view_mixins/consent_view_mixins.py b/edc_consent/view_mixins/consent_view_mixins.py index 6f7cb90..27443f9 100644 --- a/edc_consent/view_mixins/consent_view_mixins.py +++ b/edc_consent/view_mixins/consent_view_mixins.py @@ -57,7 +57,7 @@ def consent(self) -> ConsentLikeModel | None: """ if not self._consent: try: - self._consent = site_consents.get_consent_for( + self._consent = site_consents.get_consent_or_raise( subject_identifier=self.subject_identifier, report_datetime=self.report_datetime, site_id=self.request.site.id,