diff options
author | Dusty Phillips <buchuki@gmail.com> | 2009-07-24 21:58:57 +0200 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2009-07-24 21:58:57 +0200 |
commit | e03dd1c195f162b0475e75f30ec6fe7e51f2eea8 (patch) | |
tree | 42bdab96cbc977f0e379adfc579b177c99a86bd2 | |
parent | e1cc43a8cebe38847f5e81ff44cba81366e7be74 (diff) | |
download | archweb-e03dd1c195f162b0475e75f30ec6fe7e51f2eea8.tar.gz archweb-e03dd1c195f162b0475e75f30ec6fe7e51f2eea8.tar.xz |
Allow setting allowed repos to empty.
-rw-r--r-- | main/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py index 89ffb91..ebb0368 100644 --- a/main/models.py +++ b/main/models.py @@ -30,7 +30,7 @@ class UserProfile(models.Model): picture = models.FileField(upload_to='devs', default='devs/silhouette.png') user = models.ForeignKey( User, related_name='userprofile_user', unique=True) - allowed_repos = models.ManyToManyField('Repo') + allowed_repos = models.ManyToManyField('Repo', blank=True) class Meta: db_table = 'user_profiles' verbose_name = 'Additional Profile Data' |