diff --git a/program/models.py b/program/models.py index 17168f64f62c05cbc97566de6dfa4a6bb0af7194..51199a17790ff480ef4bcd26aff951196b446d3c 100644 --- a/program/models.py +++ b/program/models.py @@ -221,9 +221,6 @@ class Schedule(models.Model): add_business_days_only = True if sdl.get('add_business_days_only') is True else False dstart = parse_date(str(sdl['dstart'])) - # Schedule mustn't start in the past when adding - if pk is None and dstart < timezone.now().date(): - dstart = timezone.now().date() tstart = sdl['tstart'] + ':00' if len(str(sdl['tstart'])) == 5 else sdl['tstart'] tend = sdl['tend'] + ':00' if len(str(sdl['tend'])) == 5 else sdl['tend'] @@ -615,10 +612,6 @@ class Schedule(models.Model): errors = {} for ts in conflicts['projected']: - if parse_datetime(ts['start']) <= timezone.now(): - # Ignore past dates - continue - # If no solution necessary # # - Create the projected timeslot and skip