misc: drop support for legacy wf-draft status (#46804)

This commit is contained in:
Frédéric Péters 2020-09-20 11:06:43 +02:00
parent 45580283b7
commit 84f9a33df2
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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():