summaryrefslogtreecommitdiffstats
path: root/tools/pharos-dashboard/src/dashboard/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pharos-dashboard/src/dashboard/models.py')
-rw-r--r--tools/pharos-dashboard/src/dashboard/models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/pharos-dashboard/src/dashboard/models.py b/tools/pharos-dashboard/src/dashboard/models.py
index 4f3ac95c..3de7db3d 100644
--- a/tools/pharos-dashboard/src/dashboard/models.py
+++ b/tools/pharos-dashboard/src/dashboard/models.py
@@ -22,9 +22,10 @@ class Resource(models.Model):
name = models.CharField(max_length=100, unique=True)
description = models.CharField(max_length=300, blank=True, null=True)
url = models.CharField(max_length=100, blank=True, null=True)
- owner = models.ForeignKey(User, related_name='user_lab_owner', null=True)
+ owner = models.ForeignKey(User, related_name='user_lab_owner', null=True, blank=True)
vpn_users = models.ManyToManyField(User, related_name='user_vpn_users', blank=True)
- slave = models.ForeignKey(JenkinsSlave, on_delete=models.DO_NOTHING, null=True)
+ slave = models.ForeignKey(JenkinsSlave, on_delete=models.DO_NOTHING, null=True, blank=True)
+ dev_pod = models.BooleanField(default=False)
def get_booking_utilization(self, weeks):
"""