Skip to content
Snippets Groups Projects
Commit f2cf7aa4 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

disallow tasks with workflow null

parent f083834a
Branches
No related tags found
2 merge requests!295merge all the updates to master into this branch also,!294adding (initial) discard mechanism
Pipeline #49377 passed
...@@ -101,7 +101,7 @@ class Task(models.Model): ...@@ -101,7 +101,7 @@ class Task(models.Model):
total_processing_time = models.IntegerField(default=0, null=True, blank=True) total_processing_time = models.IntegerField(default=0, null=True, blank=True)
# relationships # relationships
workflow = models.ForeignKey(Workflow, related_name='tasks', on_delete=models.SET_NULL, null=True, blank=True) workflow = models.ForeignKey(Workflow, related_name='tasks', on_delete=models.CASCADE, null=False)
predecessor = models.ForeignKey('self', related_name='successors', on_delete=models.SET_NULL, null=True, blank=True) predecessor = models.ForeignKey('self', related_name='successors', on_delete=models.SET_NULL, null=True, blank=True)
def __str__(self): def __str__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment