Set default config values.

This commit is contained in:
Emanuel Schuetze 2012-04-22 16:55:16 +02:00
parent 1b8c1eda91
commit 61b9d476ab
2 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -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)