summaryrefslogtreecommitdiffstats
path: root/pharos-dashboard/src/account/models.py
diff options
context:
space:
mode:
authormaxbr <maxbr@mi.fu-berlin.de>2016-10-05 14:24:11 +0200
committerJose Lausuch <jose.lausuch@ericsson.com>2016-10-12 13:29:04 +0000
commitadafb09cb1f221259970d16886ea0e03169899a5 (patch)
treed282c9c67723a4f5247909256396bbfd1d957335 /pharos-dashboard/src/account/models.py
parent46e1d9ab232df1c4deb672b72cd7b87081094955 (diff)
Sync dashboard user data with jira
JIRA: PHAROS-264 Change-Id: Ic4533af04946ee0493c762ca79aaf46ee0f80e00 Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'pharos-dashboard/src/account/models.py')
-rw-r--r--pharos-dashboard/src/account/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pharos-dashboard/src/account/models.py b/pharos-dashboard/src/account/models.py
index 621f669..d87ee18 100644
--- a/pharos-dashboard/src/account/models.py
+++ b/pharos-dashboard/src/account/models.py
@@ -11,6 +11,7 @@
from django.db import models
from django.contrib.auth.models import User
+from rest_framework.authtoken.models import Token
from dashboard.models import Resource
@@ -23,8 +24,15 @@ class UserProfile(models.Model):
ssh_public_key = models.FileField(upload_to=upload_to, null=True, blank=True)
pgp_public_key = models.FileField(upload_to=upload_to, null=True, blank=True)
company = models.CharField(max_length=200, blank=False)
+
oauth_token = models.CharField(max_length=1024, blank=False)
oauth_secret = models.CharField(max_length=1024, blank=False)
+ jira_url = models.CharField(max_length=100, default='')
+ full_name = models.CharField(max_length=100, default='')
+
class Meta:
db_table = 'user_profile'
+
+ def __str__(self):
+ return self.user.username