summaryrefslogtreecommitdiffstats
path: root/pharos-dashboard/dashboard/models.py
diff options
context:
space:
mode:
authormaxbr <maxbr@mi.fu-berlin.de>2016-08-19 17:15:28 +0200
committermaxbr <maxbr@mi.fu-berlin.de>2016-08-19 17:15:28 +0200
commit114a6fb65e14f15487bc8db33cedae011fc42cac (patch)
treeb0e2db7a0876ade38e7780468b367a30b48b6036 /pharos-dashboard/dashboard/models.py
parent217e6dd3c193b5f576ade7581775993c8ed82294 (diff)
Use Jira Oauth for user authentication
JIRA: RELENG-12 Users can use their jira accounts for the dashboard. This also allows the dasboard to open jira tickets for bookings. Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'pharos-dashboard/dashboard/models.py')
-rw-r--r--pharos-dashboard/dashboard/models.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/pharos-dashboard/dashboard/models.py b/pharos-dashboard/dashboard/models.py
index cb6b92b..02073e6 100644
--- a/pharos-dashboard/dashboard/models.py
+++ b/pharos-dashboard/dashboard/models.py
@@ -17,16 +17,4 @@ class Resource(models.Model):
db_table = 'resource'
def __str__(self):
- return self.name
-
-
-class ResourceUtilization(models.Model):
- POD_STATUS = {
- 'online': 1,
- 'idle': 2,
- 'offline': 3
- }
-
- id = models.AutoField(primary_key=True)
- timestamp = models.DateTimeField(auto_created=True)
- pod_status = models.IntegerField()
+ return self.name \ No newline at end of file