Make sure all BooleanFields have an explicit default value (with
Django < 1.6 it used to be False implicitly) - Legacy-Id: 6908
This commit is contained in:
parent
dec6862787
commit
a2c13b70d1
|
@ -590,7 +590,7 @@ class StateDocEvent(DocEvent):
|
|||
state = models.ForeignKey(State, blank=True, null=True)
|
||||
|
||||
class ConsensusDocEvent(DocEvent):
|
||||
consensus = models.BooleanField()
|
||||
consensus = models.BooleanField(default=False)
|
||||
|
||||
# IESG events
|
||||
class BallotType(models.Model):
|
||||
|
|
|
@ -72,7 +72,7 @@ class IprDetail(models.Model):
|
|||
lic_opt_b_sub = models.IntegerField(null=True, editable=False, choices=STDONLY_CHOICES)
|
||||
lic_opt_c_sub = models.IntegerField(null=True, editable=False, choices=STDONLY_CHOICES)
|
||||
comments = models.TextField("Licensing Comments", blank=True)
|
||||
lic_checkbox = models.BooleanField("All terms and conditions has been disclosed")
|
||||
lic_checkbox = models.BooleanField("All terms and conditions has been disclosed", default=False)
|
||||
|
||||
|
||||
# Other notes fieldset
|
||||
|
@ -80,9 +80,9 @@ class IprDetail(models.Model):
|
|||
|
||||
# Generated fields, not part of the submission form
|
||||
# Hidden fields
|
||||
third_party = models.BooleanField()
|
||||
generic = models.BooleanField()
|
||||
comply = models.BooleanField()
|
||||
third_party = models.BooleanField(default=False)
|
||||
generic = models.BooleanField(default=False)
|
||||
comply = models.BooleanField(default=False)
|
||||
|
||||
status = models.IntegerField(null=True, blank=True, choices=STATUS_CHOICES)
|
||||
submitted_date = models.DateField(blank=True)
|
||||
|
|
|
@ -38,9 +38,9 @@ class NomCom(models.Model):
|
|||
upload_to=upload_path_handler, blank=True, null=True)
|
||||
|
||||
group = models.ForeignKey(Group)
|
||||
send_questionnaire = models.BooleanField(verbose_name='Send automatically questionnaires"',
|
||||
help_text='If you check this box, questionnaires are sent automatically after nominations')
|
||||
reminder_interval = models.PositiveIntegerField(help_text='If the nomcom user the interval field then a cron command will \
|
||||
send_questionnaire = models.BooleanField(verbose_name='Send questionnaires automatically"', default=False,
|
||||
help_text='If you check this box, questionnaires are sent automatically after nominations')
|
||||
reminder_interval = models.PositiveIntegerField(help_text='If the nomcom user sets the interval field then a cron command will \
|
||||
send reminders to the nominees who have not responded using \
|
||||
the following formula: (today - nomination_date) % interval == 0',
|
||||
blank=True, null=True)
|
||||
|
@ -142,7 +142,7 @@ class Position(models.Model):
|
|||
description = models.TextField(verbose_name='Description')
|
||||
requirement = models.ForeignKey(DBTemplate, related_name='requirement', null=True, editable=False)
|
||||
questionnaire = models.ForeignKey(DBTemplate, related_name='questionnaire', null=True, editable=False)
|
||||
is_open = models.BooleanField(verbose_name='Is open')
|
||||
is_open = models.BooleanField(verbose_name='Is open', default=False)
|
||||
incumbent = models.ForeignKey(Email, null=True, blank=True)
|
||||
|
||||
objects = PositionManager()
|
||||
|
|
Loading…
Reference in a new issue