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:
parent
483eb7bf47
commit
6063e72a3f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue