Projet

Général

Profil

« Précédent | Suivant » 

Révision e93ea142

Ajouté par Serghei Mihai (congés, retour 15/05) il y a presque 8 ans

api: newsletters retrieval endpoint (#10794)

Voir les différences:

corbo/models.py
5 5

  
6 6
from ckeditor.fields import RichTextField
7 7

  
8
import channels
8
channel_choices = (
9
    ('mailto', _('Email')),
10
    ('homepage', _('Homepage'))
11
)
9 12

  
10 13
class Category(models.Model):
11 14
    name = models.CharField(max_length=64, blank=False, null=False)
......
51 54
class Broadcast(models.Model):
52 55
    announce = models.ForeignKey(Announce, verbose_name=_('announce'))
53 56
    channel = models.CharField(_('channel'), max_length=32,
54
            choices=channels.get_channel_choices(), blank=False)
57
            choices=channel_choices, blank=False)
55 58
    time = models.DateTimeField(_('sent time'), auto_now_add=True)
56 59
    result = models.TextField(_('result'), blank=True)
57 60

  

Formats disponibles : Unified diff