comparison 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
comparison
equal deleted inserted replaced
928:4d26a46f1b86 929:e14f54f16dbc
28 28
29 """ 29 """
30 title = models.CharField(max_length=64) 30 title = models.CharField(max_length=64)
31 slug = models.SlugField(max_length=64) 31 slug = models.SlugField(max_length=64)
32 description = models.TextField() 32 description = models.TextField()
33 is_public = models.BooleanField(db_index=True) 33 is_public = models.BooleanField(default=False, db_index=True)
34 creation_date = models.DateTimeField(blank=True) 34 creation_date = models.DateTimeField(blank=True)
35 end_date = models.DateTimeField() 35 end_date = models.DateTimeField()
36 contestants = models.ManyToManyField(User, related_name='contests', 36 contestants = models.ManyToManyField(User, related_name='contests',
37 null=True, blank=True) 37 null=True, blank=True)
38 winners = models.ManyToManyField(User, null=True, blank=True, 38 winners = models.ManyToManyField(User, null=True, blank=True,