0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00

Fixes to models so makemigrations succeeds

This commit is contained in:
jacobtm 2019-11-05 15:16:39 +00:00 committed by Matt Westcott
parent f5313044f9
commit 788dd8fb5c

View File

@ -357,6 +357,7 @@ class Page(AbstractPage, index.Indexed, ClusterableModel, metaclass=PageBase):
'Workflow',
related_name='pages',
verbose_name=_('workflow'),
on_delete=models.SET_NULL,
null=True
)
@ -2457,6 +2458,8 @@ class Workflow(models.Model):
return self.name
class Meta:
unique_together = [('name', 'tasks')]
verbose_name = _('workflow')
verbose_name_plural = _('workflows')
class GroupApprovalTask(Task):
group = models.ForeignKey(Group, on_delete=models.CASCADE, verbose_name=_('group'))