diff --git a/rowers/models.py b/rowers/models.py index e28fef26..4a8adafb 100644 --- a/rowers/models.py +++ b/rowers/models.py @@ -2643,8 +2643,12 @@ class VirtualRaceForm(ModelForm): enddatetime ) - registration_closure = cd['registration_closure'] - + try: + registration_closure = cd['registration_closure'] + except KeyError: + registration_closure = enddatetime+datetime.timedelta(days=1) + cd['registration_closure'] = registration_closure + registration_form = cd['registration_form'] try: