diff bio/models.py @ 789:9e803323a0d0

Removing AUTH_PROFILE_MODULE and get_profile().
author Brian Neal <bgneal@gmail.com>
date Fri, 23 May 2014 15:10:11 -0500
parents ddc189ff96bb
children 0b6bf9c5a982
line wrap: on
line diff
--- a/bio/models.py	Sun May 18 17:43:37 2014 -0500
+++ b/bio/models.py	Fri May 23 15:10:11 2014 -0500
@@ -78,7 +78,7 @@
 class UserProfile(models.Model):
     """model to represent additional information about users"""
 
-    user = models.ForeignKey(User, unique=True)
+    user = models.OneToOneField(User, related_name='profile')
     location = models.CharField(max_length=128, blank=True)
     country = models.CharField(max_length=2, blank=True, default='',
             choices=bio.flags.FLAG_CHOICES,