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

added predecessor_status field now returns 'unknown' if there is not predecessor

parent ae8bf212
No related branches found
No related tags found
3 merge requests!143Query Page:,!134added predecessor_status field to REST API,!132added predecessor_status field now returns 'unknown' if there is not predecessor
......@@ -59,7 +59,10 @@ class Task(models.Model):
@property
def predecessor_status(self):
return self.predecessor.status
try:
return self.predecessor.status
except:
return "unknown"
class LogEntry(models.Model):
cpu_cycles = models.IntegerField(null=True,blank=True)
......
......@@ -80,7 +80,7 @@
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
<p class="footer"> Version 1.0.0 (28 oct 2021 - 11:00)
<p class="footer"> Version 1.0.0 (28 oct 2021 - 11:30)
</div>
......
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