diff --git a/openslides/config/models.py b/openslides/config/models.py index f1f30ea5d..c5a9ed9f0 100644 --- a/openslides/config/models.py +++ b/openslides/config/models.py @@ -18,6 +18,7 @@ from django.dispatch import receiver from utils.translation_ext import ugettext as _ from openslides.config.signals import default_config_value +import settings class ConfigStore(models.Model): @@ -58,6 +59,8 @@ class Config(object): for receiver, value in default_config_value.send(sender='config', key=key): if value is not None: return value + if settings.DEBUG: + print "No default value for: %s" % key return None def __setitem__(self, key, value): @@ -81,10 +84,12 @@ def default_config(sender, key, **kwargs): return { 'event_name': _('OpenSlides'), 'event_description': _('Presentation and voting system'), + 'presentation': '', 'frontpage_title': _('Welcome'), 'frontpage_welcometext': _('Welcome to OpenSlides!'), 'show_help_text': True, 'help_text': _('If you need any help wieth OpenSlides, you can find commercial support on our Webpage.'), + 'system_enable_anonymous': False, }.get(key) diff --git a/openslides/projector/models.py b/openslides/projector/models.py index 1b12e641f..c48c33cd6 100644 --- a/openslides/projector/models.py +++ b/openslides/projector/models.py @@ -48,7 +48,7 @@ class ProjectorOverlay(models.Model): register_slidemodel(ProjectorSlide, model_name=_('Projector Slide')) -@receiver(default_config_value, dispatch_uid="config_default_config") +@receiver(default_config_value, dispatch_uid="projector_default_config") def default_config(sender, key, **kwargs): return { 'projector_message': '', diff --git a/openslides/projector/templates/projector/control.html b/openslides/projector/templates/projector/control.html index cac85799d..39648f1ee 100644 --- a/openslides/projector/templates/projector/control.html +++ b/openslides/projector/templates/projector/control.html @@ -122,7 +122,6 @@ {% endif %} - {# Message #} {% if overlay.def_name == "Message" %}