FIX: dav_events: empty some more fields when copy old event.
This commit is contained in:
@@ -612,8 +612,10 @@ class EventCreateView(EventPermissionMixin, generic.FormView):
|
||||
|
||||
for field in ('id',
|
||||
'owner', 'created_at',
|
||||
'number',
|
||||
'planned_publication_date', 'internal_note',):
|
||||
'number', 'charge',
|
||||
'registration_howto', 'registration_closed',
|
||||
'planned_publication_date', 'internal_note',
|
||||
):
|
||||
if hasattr(event, field):
|
||||
setattr(event, field, None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user