From 61b9d476ab8c14c096bd8a4e12012685c2b36dd4 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Sun, 22 Apr 2012 16:55:16 +0200 Subject: [PATCH] Set default config values. --- openslides/application/models.py | 3 ++- openslides/assignment/models.py | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/openslides/application/models.py b/openslides/application/models.py index 9b5efcf77..f508afa84 100644 --- a/openslides/application/models.py +++ b/openslides/application/models.py @@ -551,6 +551,7 @@ def default_config(sender, key, **kwargs): 'application_min_supporters': 0, 'application_preamble': 'Die Versammlung möge beschließen,', 'application_pdf_ballot_papers_selection': '1', - 'application_pdf_ballot_papers_number': '0', + 'application_pdf_ballot_papers_number': '1', 'application_pdf_title': _('Applications'), + 'application_pdf_preamble': '', }.get(key) diff --git a/openslides/assignment/models.py b/openslides/assignment/models.py index 3be2d7570..8ea20bafb 100644 --- a/openslides/assignment/models.py +++ b/openslides/assignment/models.py @@ -199,7 +199,9 @@ from openslides.config.signals import default_config_value @receiver(default_config_value, dispatch_uid="assignment_default_config") def default_config(sender, key, **kwargs): return { - 'assignment_pdf_ballot_papers_selection': '1', - 'assignment_pdf_title': _('Elections'), 'assignment_publish_winner_results_only': False, + 'assignment_pdf_ballot_papers_selection': '1', + 'assignment_pdf_ballot_papers_number': '1', + 'assignment_pdf_title': _('Elections'), + 'assignment_pdf_preamble': '', }.get(key)