From cb7d54973dfeecbd9810f7d6ebb02caf7f2af8ba Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 2 Sep 2013 20:35:52 +0200 Subject: [PATCH] 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. --- openslides/motion/pdf.py | 6 +----- openslides/motion/signals.py | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/openslides/motion/pdf.py b/openslides/motion/pdf.py index ace5308cf..eb5deb725 100644 --- a/openslides/motion/pdf.py +++ b/openslides/motion/pdf.py @@ -84,11 +84,7 @@ def motion_to_pdf(pdf, motion): supporters = motion.supporter.all() for supporter in supporters: cell3b.append(Paragraph(".  %s" % unicode(supporter), - stylesheet['Signaturefield'])) - if motion.state.allow_support: - for count in range(config['motion_min_supporters'] - supporters.count()): - cell3b.append(Paragraph(". " + 42 * "_", - stylesheet['Signaturefield'])) + stylesheet['Normal'])) cell3b.append(Spacer(0, 0.2 * cm)) motion_data.append([cell3a, cell3b]) diff --git a/openslides/motion/signals.py b/openslides/motion/signals.py index 34e265a67..fc218e363 100644 --- a/openslides/motion/signals.py +++ b/openslides/motion/signals.py @@ -38,9 +38,7 @@ def setup_motion_config_page(sender, **kwargs): form_field=forms.IntegerField( widget=forms.TextInput(attrs={'class': 'small-input'}), label=ugettext_lazy('Number of (minimum) required supporters for a motion'), - initial=4, min_value=0, - max_value=8, help_text=ugettext_lazy('Choose 0 to disable the supporting system.'))) motion_remove_supporters = ConfigVariable( name='motion_remove_supporters',