summaryrefslogtreecommitdiffstats
path: root/pharos-dashboard/booking/models.py
diff options
context:
space:
mode:
authormaxbr <maxbr@mi.fu-berlin.de>2016-09-19 10:14:19 +0200
committermaxbr <maxbr@mi.fu-berlin.de>2016-09-19 10:14:19 +0200
commit100d67d065866c74954cb4b2135027a48e13d969 (patch)
tree699efcdb0bb0097161ebf2298e5994c2cf537a45 /pharos-dashboard/booking/models.py
parentd77560162ebf4805bab5eaaf051467590f2b414f (diff)
Add a REST API for the dashboard
JIRA: PHAROS-265 Change-Id: Ic1b2d20415b0b84473d5915c4f26f3e65bbb1ecf Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'pharos-dashboard/booking/models.py')
-rw-r--r--pharos-dashboard/booking/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pharos-dashboard/booking/models.py b/pharos-dashboard/booking/models.py
index e772fb5..fed35e3 100644
--- a/pharos-dashboard/booking/models.py
+++ b/pharos-dashboard/booking/models.py
@@ -6,6 +6,7 @@ from jira import JIRAError
from dashboard.models import Resource
from django.conf import settings
+
class Booking(models.Model):
id = models.AutoField(primary_key=True)
user = models.ForeignKey(User, models.CASCADE) # delete if user is deleted