Skip to content

Commit

Permalink
Merge branch 'release/0.3.83' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Apr 22, 2024
2 parents 61e37c9 + 8f8ae75 commit 117fdec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion edc_adverse_event/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
def validate_ae_initial_outcome_date(form_obj):
ae_initial = form_obj.cleaned_data.get("ae_initial")
if not ae_initial and form_obj.instance:
ae_initial = form_obj.instance.ae_initial
try:
ae_initial = form_obj.instance.ae_initial
except ObjectDoesNotExist:
pass
outcome_date = form_obj.cleaned_data.get("outcome_date")
if ae_initial and outcome_date:
if outcome_date < ae_initial.ae_start_date:
Expand Down

0 comments on commit 117fdec

Please sign in to comment.