summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/models.py b/main/models.py
index 79d99e8c..10a77379 100644
--- a/main/models.py
+++ b/main/models.py
@@ -27,8 +27,7 @@ class UserProfile(models.Model):
roles = models.CharField(max_length=255, null=True, blank=True)
favorite_distros = models.CharField(max_length=255, null=True, blank=True)
picture = models.FileField(upload_to='devs', default='devs/silhouette.png')
- user = models.ForeignKey(
- User, related_name='userprofile_user', unique=True)
+ user = models.OneToOneField(User, related_name='userprofile')
allowed_repos = models.ManyToManyField('Repo', blank=True)
class Meta:
db_table = 'user_profiles'