Project

General

Profile

« Previous | Next » 

Revision 1164bc89

Added by Mikaël Ates over 9 years ago

Add missing default values to BooleanFields.

View differences:

calebasse/agenda/models.py
69 69
    exception_date = models.DateField(blank=True, null=True,
70 70
            verbose_name=u'Reporté du', db_index=True)
71 71
    # canceled can only be used with exception to
72
    canceled = models.BooleanField(_('Annulé'), db_index=True)
72
    canceled = models.BooleanField(_('Annulé'), db_index=True, default=False)
73 73

  
74 74
    PERIODS = (
75 75
            (1, u'Toutes les semaines'),
......
575 575
        verbose_name=u'Type d\'acte')
576 576
    patient = models.ForeignKey('dossiers.PatientRecord')
577 577
    convocation_sent = models.BooleanField(blank=True,
578
        verbose_name=u'Convoqué', db_index=True)
578
        verbose_name=u'Convoqué', db_index=True, default=False)
579 579

  
580 580

  
581 581
    @property
calebasse/dossiers/models.py
261 261
            verbose_name=u'Adresse complète', editable=False)
262 262
    phone = PhoneNumberField(verbose_name=u"Téléphone", blank=True, null=True)
263 263
    fax = PhoneNumberField(verbose_name=u"Fax", blank=True, null=True)
264
    place_of_life = models.BooleanField(verbose_name=u"Lieu de vie")
264
    place_of_life = models.BooleanField(verbose_name=u"Lieu de vie",
265
            default=True)
265 266
    number = models.CharField(max_length=12,
266 267
            verbose_name=u"Numéro", blank=True, null=True)
267 268
    recipient = models.CharField(max_length=100,
calebasse/ressources/models.py
470 470
class WorkerType(NamedAbstractModel):
471 471
    intervene = models.BooleanField(
472 472
            verbose_name=u'Intervenant',
473
            blank=True)
473
            default=True, blank=True)
474 474

  
475 475
    class Meta:
476 476
        verbose_name = u'Type de personnel'
......
573 573
class HolidayType(NamedAbstractModel):
574 574
    for_group = models.BooleanField(
575 575
            verbose_name=u'Absence de groupe',
576
            blank=True)
576
            default=True, blank=True)
577 577

  
578 578
    class Meta:
579 579
        verbose_name = u"Type d'absence"

Also available in: Unified diff