Merge pull request #542 from frauenknecht/master
Issue #539 Default config value in agenda app
This commit is contained in:
commit
757b97e4cb
@ -0,0 +1,13 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
openslides.agenda
|
||||||
|
~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
The OpenSlides agenda app appends the functionality to OpenSlides to
|
||||||
|
manage agendas.
|
||||||
|
|
||||||
|
:copyright: (c) 2011-2013 by the OpenSlides team, see AUTHORS.
|
||||||
|
:license: GNU GPL, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import openslides.agenda.signals
|
22
openslides/agenda/signals.py
Normal file
22
openslides/agenda/signals.py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
openslides.agenda.signals
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Signals for the agenda app.
|
||||||
|
|
||||||
|
:copyright: (c) 2011-2013 by the OpenSlides team, see AUTHORS.
|
||||||
|
:license: GNU GPL, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
|
from django.dispatch import receiver
|
||||||
|
|
||||||
|
from openslides.config.signals import default_config_value
|
||||||
|
|
||||||
|
|
||||||
|
@receiver(default_config_value, dispatch_uid="agenda_default_config")
|
||||||
|
def default_config(sender, key, **kwargs):
|
||||||
|
"""Return the default config values for the agenda app."""
|
||||||
|
return {
|
||||||
|
'agenda_start_event_date_time': ''}.get(key)
|
Loading…
Reference in New Issue
Block a user