From 3b5ef3b0a88247eeafeee878de528aad71f9fd4b Mon Sep 17 00:00:00 2001 From: maxbr Date: Fri, 19 Aug 2016 17:10:31 +0200 Subject: Split the dashboard into different apps, add tests JIRA: RELENG-12 Signed-off-by: maxbr --- tools/pharos-dashboard/account/models.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tools/pharos-dashboard/account/models.py (limited to 'tools/pharos-dashboard/account/models.py') 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' -- cgit 1.2.3-korg