Skip to content

Commit

Permalink
Merge branch 'release/0.3.95' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Apr 22, 2024
2 parents 956938f + 4d4871a commit 07e96c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edc_metadata/view_mixins/metadata_view_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class MetadataViewMixin:

def get_context_data(self, **kwargs) -> dict:
if self.appointment:
# always refresh metadata / run rules
refresh_metadata_for_timepoint(self.appointment, allow_create=True)
referer = self.request.headers.get("Referer")
if referer and "subject_review_listboard" in referer:
# don't allow_create for performance reasons
refresh_metadata_for_timepoint(self.appointment, allow_create=True)
if self.appointment.related_visit:
update_appt_status_for_timepoint(self.appointment.related_visit)
crf_qs = self.get_crf_metadata()
Expand Down

0 comments on commit 07e96c5

Please sign in to comment.