Skip to content

Commit

Permalink
Merge branch 'fix/840-server-error-tb-dx-from-admin' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWillitts committed Jan 31, 2025
2 parents ffaa0ff + 8aaa54f commit 00d02e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changes
+++++++

unreleased
------
- fix `Server error saving [...] TB Diagnostics forms opened from
admin site` (#840)
- # TODO: bump to effect-form-validators 1.0.0 (once released)


1.0.0
------
- fix issues where addition of some unscheduled visits could result in
Expand Down
4 changes: 2 additions & 2 deletions effect_subject/forms/tb_diagnostics_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ class TbDiagnosticsFormValidator(
):
def clean(self):
self.validate_study_day_with_datetime(
subject_identifier=self.cleaned_data.get("subject_visit").subject_identifier,
subject_identifier=self.related_visit.subject_identifier,
study_day=self.cleaned_data.get("day_blood_taken"),
compare_date=self.cleaned_data.get("blood_taken_date"),
study_day_field="day_blood_taken",
)

self.validate_study_day_with_datetime(
subject_identifier=self.cleaned_data.get("subject_visit").subject_identifier,
subject_identifier=self.related_visit.subject_identifier,
study_day=self.cleaned_data.get("day_biopsy_taken"),
compare_date=self.cleaned_data.get("biopsy_date"),
study_day_field="day_biopsy_taken",
Expand Down

0 comments on commit 00d02e4

Please sign in to comment.