Skip to content

Commit 6063e72

Browse files
committed
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
1 parent 483eb7b commit 6063e72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/secr/meetings/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_day_choices(self):
149149
'''Get day choices for form based on meeting duration'''
150150
choices = []
151151
start = self.meeting.date
152-
for n in range(self.meeting.days):
152+
for n in range(-self.meeting.days, self.meeting.days):
153153
date = start + datetime.timedelta(days=n)
154154
choices.append((n, date.strftime("%a %b %d")))
155155
return choices

0 commit comments

Comments
 (0)