summaryrefslogtreecommitdiffstats
path: root/dashboard/src/booking/models.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-02-01 15:30:36 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-02-01 15:30:36 +0000
commit55653461319fdc51bac52367a2776068165a4b6d (patch)
treea1d554f28b5890d079bbadc1152a22040afb1b2e /dashboard/src/booking/models.py
parent6bc35a9e3a59580c4e517e157794cb0e55832438 (diff)
parentcac685966eebdf61db777860eae946f9a039187f (diff)
Merge "Allow Users to Delete objects and Cancel Bookings"
Diffstat (limited to 'dashboard/src/booking/models.py')
-rw-r--r--dashboard/src/booking/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard/src/booking/models.py b/dashboard/src/booking/models.py
index 0972922..8612abd 100644
--- a/dashboard/src/booking/models.py
+++ b/dashboard/src/booking/models.py
@@ -18,7 +18,7 @@ import resource_inventory.resource_manager
class Booking(models.Model):
id = models.AutoField(primary_key=True)
- owner = models.ForeignKey(User, models.CASCADE, related_name='owner')
+ owner = models.ForeignKey(User, on_delete=models.PROTECT, related_name='owner')
collaborators = models.ManyToManyField(User, related_name='collaborators')
start = models.DateTimeField()
end = models.DateTimeField()