comparison contests/models.py @ 1028:5ba2508939f7

Django 1.8 changes; first batch.
author Brian Neal <bgneal@gmail.com>
date Tue, 15 Dec 2015 21:01:07 -0600
parents e14f54f16dbc
children eeaf387803c6
comparison
equal deleted inserted replaced
1027:cd4db27c90e3 1028:5ba2508939f7
32 description = models.TextField() 32 description = models.TextField()
33 is_public = models.BooleanField(default=False, 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 blank=True)
38 winners = models.ManyToManyField(User, null=True, blank=True, 38 winners = models.ManyToManyField(User, blank=True,
39 related_name='winning_contests') 39 related_name='winning_contests')
40 win_date = models.DateTimeField(null=True, blank=True) 40 win_date = models.DateTimeField(null=True, blank=True)
41 meta_description = models.TextField() 41 meta_description = models.TextField()
42 num_winners = models.IntegerField(default=1, 42 num_winners = models.IntegerField(default=1,
43 verbose_name='Number of winners') 43 verbose_name='Number of winners')