Allow to set event_list_type on event level

This commit is contained in:
Raphael Michel
2020-04-27 18:06:37 +02:00
parent 4ec24fc884
commit 88a235da30
4 changed files with 22 additions and 1 deletions

View File

@@ -880,7 +880,22 @@ DEFAULTS = {
},
'event_list_type': {
'default': 'list',
'type': str
'type': str,
'form_class': forms.ChoiceField,
'serializer_class': serializers.ChoiceField,
'serializer_kwargs': dict(
choices=(
('list', _('List')),
('calendar', _('Calendar'))
)
),
'form_kwargs': dict(
label=_('Default overview style'),
choices=(
('list', _('List')),
('calendar', _('Calendar'))
)
),
},
'last_order_modification_date': {
'default': None,