Allow the secretariat to request many more sessions. Commit ready for merge.
- Legacy-Id: 19946
This commit is contained in:
parent
8fd6f33248
commit
1070ea6f08
|
@ -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'})
|
||||
|
||||
|
|
Loading…
Reference in a new issue