Project

General

Profile

« Previous | Next » 

Revision cde3711b

Added by Mikaël Ates over 9 years ago

agenda: use unicode strings in model fields everywhere.

View differences:

calebasse/agenda/models.py
55 55
    ressource = models.ForeignKey('ressources.Ressource', blank=True, null=True,
56 56
                                  verbose_name=u'Ressource')
57 57

  
58
    start_datetime = models.DateTimeField(_('Début'), db_index=True)
59
    end_datetime = models.DateTimeField(_('Fin'), blank=True, null=True)
58
    start_datetime = models.DateTimeField(_(u'Début'), db_index=True)
59
    end_datetime = models.DateTimeField(_(u'Fin'), blank=True, null=True)
60 60
    old_ev_id = models.CharField(max_length=8, blank=True, null=True)
61 61
    old_rr_id = models.CharField(max_length=8, blank=True, null=True)
62 62
    # only used when there is no rr id
......
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, default=False)
72
    canceled = models.BooleanField(_(u'Annulé'), db_index=True, default=False)
73 73

  
74 74
    PERIODS = (
75 75
            (1, u'Toutes les semaines'),
76 76
            (2, u'Une semaine sur deux'),
77 77
            (3, u'Une semaine sur trois'),
78
            (4, 'Une semaine sur quatre'),
79
            (5, 'Une semaine sur cinq')
78
            (4, u'Une semaine sur quatre'),
79
            (5, u'Une semaine sur cinq')
80 80
    )
81 81
    OFFSET = range(0, 4)
82 82
    PERIODICITIES = (

Also available in: Unified diff