summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-20 20:02:38 +0100
committerDan McGee <dan@archlinux.org>2010-03-20 20:02:38 +0100
commit97202e429af1a6b614310cb220d27a51653643c1 (patch)
tree773631d9438549bbaa3dbfa56b4a488aad1f5263 /main/models.py
parentcb6df87f948756e8d680a4bb594698ae93a9aad0 (diff)
downloadarchweb-97202e429af1a6b614310cb220d27a51653643c1.tar.gz
archweb-97202e429af1a6b614310cb220d27a51653643c1.tar.xz
Make rsync fields on mirrors optional
I think I bumbled this up a while back, but make sure they aren't required and we use the empty string for all of those that don't provide a value. Fixes FS#18763. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/models.py b/main/models.py
index d129f4a..0954f79 100644
--- a/main/models.py
+++ b/main/models.py
@@ -67,8 +67,8 @@ class Mirror(models.Model):
public = models.BooleanField(default=True)
active = models.BooleanField(default=True)
isos = models.BooleanField(default=True)
- rsync_user = models.CharField(max_length=50, null=True)
- rsync_password = models.CharField(max_length=50, null=True)
+ rsync_user = models.CharField(max_length=50, blank=True, default='')
+ rsync_password = models.CharField(max_length=50, blank=True, default='')
notes = models.TextField(blank=True)
def __unicode__(self):
return self.name