Merge pull request #1004 from ostcar/update_projector_default_slide
Update projector when the title of the default slide changes
This commit is contained in:
commit
2309bd4772
@ -7,6 +7,7 @@ from django.utils.translation import ugettext_lazy, ugettext_noop
|
|||||||
|
|
||||||
from openslides.config.api import ConfigGroup, ConfigGroupedPage, ConfigVariable
|
from openslides.config.api import ConfigGroup, ConfigGroupedPage, ConfigVariable
|
||||||
from openslides.config.signals import config_signal
|
from openslides.config.signals import config_signal
|
||||||
|
from openslides.projector.api import update_projector
|
||||||
|
|
||||||
post_database_setup = Signal()
|
post_database_setup = Signal()
|
||||||
|
|
||||||
@ -64,7 +65,8 @@ def setup_general_config_page(sender, **kwargs):
|
|||||||
form_field=forms.CharField(
|
form_field=forms.CharField(
|
||||||
widget=forms.TextInput(),
|
widget=forms.TextInput(),
|
||||||
label=ugettext_lazy('Title'),
|
label=ugettext_lazy('Title'),
|
||||||
required=False))
|
required=False),
|
||||||
|
on_change=update_projector)
|
||||||
|
|
||||||
welcome_text = ConfigVariable(
|
welcome_text = ConfigVariable(
|
||||||
name='welcome_text',
|
name='welcome_text',
|
||||||
|
Loading…
Reference in New Issue
Block a user