Fixed #858: Removed max value (8) of config field "motion_min_supporters".
Removed supporters signature field in motion pdf to prevent the unused signature fields which are printed for each required supporters if you have a high minimum supporters number.
This commit is contained in:
parent
48f8e82eda
commit
cb7d54973d
@ -84,11 +84,7 @@ def motion_to_pdf(pdf, motion):
|
|||||||
supporters = motion.supporter.all()
|
supporters = motion.supporter.all()
|
||||||
for supporter in supporters:
|
for supporter in supporters:
|
||||||
cell3b.append(Paragraph("<seq id='counter'/>. %s" % unicode(supporter),
|
cell3b.append(Paragraph("<seq id='counter'/>. %s" % unicode(supporter),
|
||||||
stylesheet['Signaturefield']))
|
stylesheet['Normal']))
|
||||||
if motion.state.allow_support:
|
|
||||||
for count in range(config['motion_min_supporters'] - supporters.count()):
|
|
||||||
cell3b.append(Paragraph("<seq id='counter'/>. " + 42 * "_",
|
|
||||||
stylesheet['Signaturefield']))
|
|
||||||
cell3b.append(Spacer(0, 0.2 * cm))
|
cell3b.append(Spacer(0, 0.2 * cm))
|
||||||
motion_data.append([cell3a, cell3b])
|
motion_data.append([cell3a, cell3b])
|
||||||
|
|
||||||
|
@ -38,9 +38,7 @@ def setup_motion_config_page(sender, **kwargs):
|
|||||||
form_field=forms.IntegerField(
|
form_field=forms.IntegerField(
|
||||||
widget=forms.TextInput(attrs={'class': 'small-input'}),
|
widget=forms.TextInput(attrs={'class': 'small-input'}),
|
||||||
label=ugettext_lazy('Number of (minimum) required supporters for a motion'),
|
label=ugettext_lazy('Number of (minimum) required supporters for a motion'),
|
||||||
initial=4,
|
|
||||||
min_value=0,
|
min_value=0,
|
||||||
max_value=8,
|
|
||||||
help_text=ugettext_lazy('Choose 0 to disable the supporting system.')))
|
help_text=ugettext_lazy('Choose 0 to disable the supporting system.')))
|
||||||
motion_remove_supporters = ConfigVariable(
|
motion_remove_supporters = ConfigVariable(
|
||||||
name='motion_remove_supporters',
|
name='motion_remove_supporters',
|
||||||
|
Loading…
Reference in New Issue
Block a user