From 088c53e78beeead87ba9ff8ff80e20b476d7cfb9 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 7 Dec 2013 21:59:00 +0100 Subject: [PATCH] fix: add default=False to BooleanFields (otherwise it might complain about "not NULL") --- nsupdate/main/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nsupdate/main/models.py b/nsupdate/main/models.py index ffb662b..590a6b7 100644 --- a/nsupdate/main/models.py +++ b/nsupdate/main/models.py @@ -160,8 +160,8 @@ class Host(models.Model): last_update_ipv4 = models.DateTimeField(blank=True, null=True) last_update_ipv6 = models.DateTimeField(blank=True, null=True) # how we received the last update for v4/v6 addr - ssl_update_ipv4 = models.BooleanField() - ssl_update_ipv6 = models.BooleanField() + ssl_update_ipv4 = models.BooleanField(default=False) + ssl_update_ipv6 = models.BooleanField(default=False) last_update = models.DateTimeField(auto_now=True) created = models.DateTimeField(auto_now_add=True)