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

allow tasks with workflow null

parent 75bcef94
No related branches found
No related tags found
2 merge requests!295merge all the updates to master into this branch also,!294adding (initial) discard mechanism
Pipeline #49389 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.CASCADE, null=False) workflow = models.ForeignKey(Workflow, related_name='tasks', on_delete=models.CASCADE, null=True, blank=True)
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.
Finish editing this message first!
Please register or to comment