misc: drop support for legacy wf-draft status (#46804)
This commit is contained in:
parent
45580283b7
commit
84f9a33df2
|
@ -883,7 +883,7 @@ class FormDefPage(Directory):
|
|||
form.get_widget('mapping-%s' % status.id).parse()
|
||||
if any([x[0] != x[1] for x in status_mapping.items()]):
|
||||
# if there are status changes, update all formdatas
|
||||
status_mapping.update({'wf-draft': 'draft', 'draft': 'draft'})
|
||||
status_mapping.update({'draft': 'draft'})
|
||||
for item in self.formdef.data_class().select():
|
||||
item.status = status_mapping.get(item.status)
|
||||
if item.evolution:
|
||||
|
|
|
@ -908,7 +908,7 @@ class FormData(StorableObject):
|
|||
def is_draft(self, status=None):
|
||||
if status is None:
|
||||
status = self.status
|
||||
return status in ('draft', 'wf-draft')
|
||||
return status == 'draft'
|
||||
|
||||
def get_concerned_roles(self):
|
||||
if self.is_draft():
|
||||
|
|
Loading…
Reference in New Issue