UPD: removed some left over traced of accepted* and confirm_published*
properties.
This commit is contained in:
@@ -353,15 +353,10 @@ class EventCreateView(EventPermissionMixin, generic.FormView):
|
||||
|
||||
for field in ('id',
|
||||
'owner', 'created_at',
|
||||
'accepted_at', 'accepted_by',
|
||||
'publication_confirmed_at', 'publication_confirmed_by',
|
||||
'number',
|
||||
'planned_publication_date', 'internal_note',):
|
||||
if hasattr(event, field):
|
||||
setattr(event, field, None)
|
||||
for field in ('accepted', 'publication_confirmed'):
|
||||
if hasattr(event, field):
|
||||
setattr(event, field, False)
|
||||
|
||||
initial_form_name = self.form_class.get_initial_form_name()
|
||||
form_class = getattr(forms.events, initial_form_name)
|
||||
|
||||
Reference in New Issue
Block a user