summaryrefslogtreecommitdiffstats
path: root/pharos-dashboard/src/account/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'pharos-dashboard/src/account/models.py')
-rw-r--r--pharos-dashboard/src/account/models.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/pharos-dashboard/src/account/models.py b/pharos-dashboard/src/account/models.py
index 621f669..c2e9902 100644
--- a/pharos-dashboard/src/account/models.py
+++ b/pharos-dashboard/src/account/models.py
@@ -8,11 +8,9 @@
##############################################################################
-from django.db import models
-
from django.contrib.auth.models import User
+from django.db import models
-from dashboard.models import Resource
def upload_to(object, filename):
return object.user.username + '/' + filename
@@ -23,8 +21,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