diff options
author | Jack Morgan <jack.morgan@intel.com> | 2016-08-22 14:13:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-22 14:13:06 +0000 |
commit | c121ae90322dac5cf72e98450c89ff7e5131b20c (patch) | |
tree | 51b6c58e102777649940686915da48aab5971fac /tools/pharos-dashboard/account/models.py | |
parent | e4649cce49068942ef754746fdd5bc75636075de (diff) | |
parent | 3b5ef3b0a88247eeafeee878de528aad71f9fd4b (diff) |
Merge "Split the dashboard into different apps, add tests"
Diffstat (limited to 'tools/pharos-dashboard/account/models.py')
-rw-r--r-- | tools/pharos-dashboard/account/models.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/pharos-dashboard/account/models.py b/tools/pharos-dashboard/account/models.py new file mode 100644 index 00000000..5181c719 --- /dev/null +++ b/tools/pharos-dashboard/account/models.py @@ -0,0 +1,16 @@ +from django.db import models + +from django.contrib.auth.models import User + +from dashboard.models import Resource + + +class UserProfile(models.Model): + user = models.OneToOneField(User, on_delete=models.CASCADE) + timezone = models.CharField(max_length=100, blank=False, default='UTC') + sshkey = models.CharField(max_length=2048, blank=False) + pgpkey = models.CharField(max_length=2048, blank=False) + company = models.CharField(max_length=200, blank=False) + + class Meta: + db_table = 'user_profile' |