fix: add default=False to BooleanFields (otherwise it might complain about "not NULL")

This commit is contained in:
Thomas Waldmann 2013-12-07 21:59:00 +01:00
parent 112545544b
commit 088c53e78b

View File

@ -160,8 +160,8 @@ class Host(models.Model):
last_update_ipv4 = models.DateTimeField(blank=True, null=True) last_update_ipv4 = models.DateTimeField(blank=True, null=True)
last_update_ipv6 = 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 # how we received the last update for v4/v6 addr
ssl_update_ipv4 = models.BooleanField() ssl_update_ipv4 = models.BooleanField(default=False)
ssl_update_ipv6 = models.BooleanField() ssl_update_ipv6 = models.BooleanField(default=False)
last_update = models.DateTimeField(auto_now=True) last_update = models.DateTimeField(auto_now=True)
created = models.DateTimeField(auto_now_add=True) created = models.DateTimeField(auto_now_add=True)