summaryrefslogtreecommitdiff
path: root/coip/apps/userprofile/models.py
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-08-07 14:34:14 +0200
committerLeif Johansson <leifj@sunet.se>2011-08-07 14:34:14 +0200
commit99a05864a9a9ff8ac1c68400f111ede67cf3fe28 (patch)
tree470f3c631d52a860ec5376c9993a61a1eaee2688 /coip/apps/userprofile/models.py
parent63ec9216a9d85c80499fef9e0d9682d09ffa2875 (diff)
first take at minimal opensocial
Diffstat (limited to 'coip/apps/userprofile/models.py')
-rw-r--r--coip/apps/userprofile/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/coip/apps/userprofile/models.py b/coip/apps/userprofile/models.py
index b6c2234..40751fb 100644
--- a/coip/apps/userprofile/models.py
+++ b/coip/apps/userprofile/models.py
@@ -5,6 +5,7 @@ Created on Jul 5, 2010
'''
from django.db import models
from django.contrib.auth.models import User
+from coip.apps.name.models import Name
class UserProfile(models.Model):
user = models.ForeignKey(User,blank=True,null=True,related_name='profiles')
@@ -15,6 +16,7 @@ class UserProfile(models.Model):
identifier = models.CharField(max_length=1023,unique=True)
timecreated = models.DateTimeField(auto_now_add=True)
lastupdated = models.DateTimeField(auto_now=True)
+ home = models.ForeignKey(Name,blank=True,null=True,editable=False)
def __unicode__(self):
return "%s [%s] - %s" % (self.identifier,self.user.username,self.display_name)