Commit 6d5b7363 by Őry Máté

dashboard: add Profile model

Closes #43
parent 472b00ed
from django.conf import settings
from django.contrib.auth.models import User
from django.db.models import Model, ForeignKey
from django.db.models import Model, ForeignKey, OneToOneField, CharField
from django.utils.translation import ugettext_lazy as _
from vm.models import Instance
......@@ -7,3 +9,14 @@ from vm.models import Instance
class Favourite(Model):
instance = ForeignKey(Instance)
user = ForeignKey(User)
class Profile(Model):
user = OneToOneField(User)
preferred_language = CharField(verbose_name=_('preferred language'),
default=settings.LANGUAGE_CODE, blank=False)
org_id = CharField( # may be populated from eduPersonOrgId field
unique=True, blank=True, null=True, max_length=64,
help_text=_('Unique identifier of the person, e.g. a student number.'))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment