From 5f9c7a79c2ebdbde8fbb3fa159598c635ec65032 Mon Sep 17 00:00:00 2001 From: erikvw Date: Wed, 27 Mar 2024 18:48:49 -0500 Subject: [PATCH] switch call to get_consents instead of get_consents_for --- edc_consent/view_mixins/consent_view_mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edc_consent/view_mixins/consent_view_mixins.py b/edc_consent/view_mixins/consent_view_mixins.py index 6dba4d2..27443f9 100644 --- a/edc_consent/view_mixins/consent_view_mixins.py +++ b/edc_consent/view_mixins/consent_view_mixins.py @@ -45,7 +45,7 @@ def get_context_data(self, **kwargs) -> dict[str, Any]: def consents(self) -> QuerySet[ConsentLikeModel]: """Returns a Queryset of consents for this subject.""" if not self._consents: - self._consents = site_consents.get_consent_or_raise( + self._consents = site_consents.get_consents( self.subject_identifier, site_id=self.request.site.id ) return self._consents