agendas: fix missing options in agenda import/export (#87679)
gitea/chrono/pipeline/head This commit looks good
Details
gitea/chrono/pipeline/head This commit looks good
Details
This commit is contained in:
parent
3cef873ce4
commit
0ea056dcd5
|
@ -485,6 +485,7 @@ class Agenda(WithSnapshotMixin, WithApplicationMixin, models.Model):
|
|||
'category': self.category.slug if self.category else None,
|
||||
'minimal_booking_delay': self.minimal_booking_delay,
|
||||
'maximal_booking_delay': self.maximal_booking_delay,
|
||||
'anonymize_delay': self.anonymize_delay,
|
||||
'permissions': {
|
||||
'view': self.view_role.name if self.view_role else None,
|
||||
'edit': self.edit_role.name if self.edit_role else None,
|
||||
|
|
|
@ -186,6 +186,7 @@ def test_import_export_events_agenda_options(app):
|
|||
label='Foo Bar',
|
||||
kind='events',
|
||||
default_view='open_events',
|
||||
anonymize_delay=42,
|
||||
booking_form_url='{{ eservices_url }}backoffice/submission/inscription-aux-activites/',
|
||||
minimal_booking_delay_in_working_days=True,
|
||||
booking_user_block_template='foo bar',
|
||||
|
@ -210,6 +211,7 @@ def test_import_export_events_agenda_options(app):
|
|||
assert Agenda.objects.count() == 1
|
||||
agenda = Agenda.objects.first()
|
||||
assert agenda.default_view == 'open_events'
|
||||
assert agenda.anonymize_delay == 42
|
||||
assert agenda.booking_form_url == '{{ eservices_url }}backoffice/submission/inscription-aux-activites/'
|
||||
assert agenda.minimal_booking_delay_in_working_days is True
|
||||
assert agenda.booking_user_block_template == 'foo bar'
|
||||
|
|
Loading…
Reference in New Issue