Mercurial > public > sg101
diff contests/models.py @ 929:e14f54f16dbc
Django 1.7.7 changed BooleanField default value.
Add explicit default to avoid a warning.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 15 Apr 2015 20:18:23 -0500 |
parents | 21946dc3662d |
children | 5ba2508939f7 |
line wrap: on
line diff
--- a/contests/models.py Tue Apr 14 21:28:36 2015 -0500 +++ b/contests/models.py Wed Apr 15 20:18:23 2015 -0500 @@ -30,7 +30,7 @@ title = models.CharField(max_length=64) slug = models.SlugField(max_length=64) description = models.TextField() - is_public = models.BooleanField(db_index=True) + is_public = models.BooleanField(default=False, db_index=True) creation_date = models.DateTimeField(blank=True) end_date = models.DateTimeField() contestants = models.ManyToManyField(User, related_name='contests',