diff options
author | maxbr <maxbr@mi.fu-berlin.de> | 2016-08-22 18:59:47 +0200 |
---|---|---|
committer | maxbr <maxbr@mi.fu-berlin.de> | 2016-08-22 19:04:19 +0200 |
commit | f4e8248d126921603280dffab0e907366391bb72 (patch) | |
tree | 35b94e14b2e024bafbc8946b2fe50d8aa34e8357 /pharos-dashboard/dashboard/models.py | |
parent | b426489bafaa4d6d09d1b6cefbbd9a17509090d9 (diff) |
Create Jira issue for new booking
JIRA: RELENG-12
The issue is assigned to the lab owner and to the POD Access Request
Component. The pgp and ssh keys are uploaded to jira as an attachement.
Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'pharos-dashboard/dashboard/models.py')
-rw-r--r-- | pharos-dashboard/dashboard/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pharos-dashboard/dashboard/models.py b/pharos-dashboard/dashboard/models.py index 02073e6..971af6a 100644 --- a/pharos-dashboard/dashboard/models.py +++ b/pharos-dashboard/dashboard/models.py @@ -10,8 +10,8 @@ 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) - owners = models.ManyToManyField(User) - slave = models.ForeignKey(JenkinsSlave, on_delete=models.DO_NOTHING) + owner = models.ForeignKey(User) + slave = models.ForeignKey(JenkinsSlave, on_delete=models.DO_NOTHING, null=True) class Meta: db_table = 'resource' |