From e90054ce5f095c00f812b46d52b3c52d0c4b1768 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 30 May 2016 13:46:58 +0200 Subject: [PATCH] Set default values so it's actually possible to request new repositories The handling must've changed when we upgraded to django 1.8, and somehow we managed to miss that in testing. Noted by Devrim Gunduz. --- gitadmin/gitadmin/adm/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitadmin/gitadmin/adm/models.py b/gitadmin/gitadmin/adm/models.py index 5825ffa..8c9d846 100644 --- a/gitadmin/gitadmin/adm/models.py +++ b/gitadmin/gitadmin/adm/models.py @@ -34,9 +34,9 @@ class Repository(models.Model): repoid = models.AutoField(blank=False, primary_key=True) name = models.CharField(max_length=64, blank=False, unique=True) description = models.TextField(max_length=1024, blank=False) - anonymous = models.BooleanField(blank=False,verbose_name='Enable anonymous access') - web = models.BooleanField(blank=False,verbose_name='Enable gitweb access') - approved = models.BooleanField(blank=False) + anonymous = models.BooleanField(blank=False,default=False,verbose_name='Enable anonymous access') + web = models.BooleanField(blank=False,default=False,verbose_name='Enable gitweb access') + approved = models.BooleanField(blank=False, default=False) tabwidth = models.IntegerField(default=8, null=False) initialclone = models.CharField(max_length=256, blank=True, null=True) remoterepository = models.ForeignKey(RemoteRepository, null=True, blank=True, -- 2.39.5