Skip to content

Commit

Permalink
Replace get_consent_for() with get_consent_or_raise()
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWillitts committed Mar 27, 2024
1 parent f43eb1a commit 6cc08d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edc_consent/view_mixins/consent_view_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 6cc08d5

Please sign in to comment.