Merged in [19946] from rjsparks@nostrum.com:

Allow the secretariat to request many more sessions.
 - Legacy-Id: 19955
Note: SVN reference [19946] has been migrated to Git commit 1070ea6f08
This commit is contained in:
Robert Sparks 2022-02-22 18:38:41 +00:00
commit dfdfa6262f

View file

@ -90,13 +90,13 @@ class SessionForm(forms.Form):
self.hidden = False
self.group = group
formset_class = sessiondetailsformset_factory(max_num=3 if group.features.acts_like_wg else 12)
formset_class = sessiondetailsformset_factory(max_num=3 if group.features.acts_like_wg else 50)
self.session_forms = formset_class(group=self.group, meeting=meeting, data=data)
super(SessionForm, self).__init__(data=data, *args, **kwargs)
# Allow additional sessions for non-wg-like groups
if not self.group.features.acts_like_wg:
self.fields['num_session'].choices = ((n, str(n)) for n in range(1, 13))
self.fields['num_session'].choices = ((n, str(n)) for n in range(1, 51))
self.fields['comments'].widget = forms.Textarea(attrs={'rows':'3','cols':'65'})