summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-20 14:02:38 -0500
committerDan McGee <dan@archlinux.org>2010-03-20 14:02:38 -0500
commit97202e429af1a6b614310cb220d27a51653643c1 (patch)
tree773631d9438549bbaa3dbfa56b4a488aad1f5263 /main/models.py
parentcb6df87f948756e8d680a4bb594698ae93a9aad0 (diff)
Make rsync fields on mirrors optionalrelease_2010-03-20
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 d129f4a7..0954f79d 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