Skip to content

Commit

Permalink
Merge branch 'release/0.3.78' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Mar 27, 2024
2 parents f43eb1a + 19a4741 commit a68fd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edc_consent/view_mixins/consent_view_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_consents(
self._consents = site_consents.get_consent_or_raise(
self.subject_identifier, site_id=self.request.site.id
)
return self._consents
Expand All @@ -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,
Expand Down

0 comments on commit a68fd05

Please sign in to comment.