diff options
author | Jack Morgan <jack.morgan@intel.com> | 2018-01-08 23:56:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-08 23:56:21 +0000 |
commit | 6173050b6bfc3d96d3056c5de4c927f1b461fe6e (patch) | |
tree | c58f857f8734c41b48d3e43229aa235dfcce4152 /src/booking/models.py | |
parent | ee1caa30008635717943bfdfecc692cde052a461 (diff) | |
parent | eb75879a4632015b427d97ab945eaaa0bc26959a (diff) |
Merge "Add Dashboard OS Selection Menu on Booking"
Diffstat (limited to 'src/booking/models.py')
-rw-r--r-- | src/booking/models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/booking/models.py b/src/booking/models.py index 0b3fa3b..0bf5961 100644 --- a/src/booking/models.py +++ b/src/booking/models.py @@ -31,6 +31,12 @@ class Scenario(models.Model): def __str__(self): return self.name +class Opsys(models.Model): + id = models.AutoField(primary_key=True) + name = models.CharField(max_length=100) + + def __str__(self): + return self.name class Booking(models.Model): id = models.AutoField(primary_key=True) @@ -41,6 +47,7 @@ class Booking(models.Model): jira_issue_id = models.IntegerField(null=True) jira_issue_status = models.CharField(max_length=50) + opsys = models.ForeignKey(Opsys, models.DO_NOTHING, null=True) installer = models.ForeignKey(Installer, models.DO_NOTHING, null=True) scenario = models.ForeignKey(Scenario, models.DO_NOTHING, null=True) purpose = models.CharField(max_length=300, blank=False) |