Tweaked the list of days in secr session edit forms to allow setting the date to a day before the start of the meeting, necessary for IETF 108.

- Legacy-Id: 18171
This commit is contained in:
Henrik Levkowetz 2020-07-14 17:46:34 +00:00
parent 483eb7bf47
commit 6063e72a3f

View file

@ -149,7 +149,7 @@ class TimeSlotForm(forms.Form):
'''Get day choices for form based on meeting duration'''
choices = []
start = self.meeting.date
for n in range(self.meeting.days):
for n in range(-self.meeting.days, self.meeting.days):
date = start + datetime.timedelta(days=n)
choices.append((n, date.strftime("%a %b %d")))
return choices