Ejemplo n.º 1
0
 class Meta:
     model = Promo
     widgets = {
         "headline": OppsEditor(),
         "description": OppsEditor(),
         "confirmation_email_html": OppsEditor(),
         "rules": OppsEditor(),
         "result": OppsEditor()
     }
Ejemplo n.º 2
0
    class Meta:
        model = Audio

        if not settings.OPPS_MULTIMEDIAS_USE_CONTENT_FIELD:
            exclude = ['content']
        else:
            widgets = {'content': OppsEditor()}
Ejemplo n.º 3
0
class Page(Wiki):
    PUBLIC_FIELDS = ('title', 'content', 'parent', 'tags')
    PUBLIC_FIELDS_WIDGETS = {'content': OppsEditor()}
    content = models.TextField(_(u'content'), )

    class Meta:
        permissions = (('can_publish', _(u'User can publish automatically')), )
        verbose_name = _(u'Page')
        verbose_name_plural = _(u'Pages')
Ejemplo n.º 4
0
class Musician(Wiki):
    PUBLIC_FIELDS = ('title', 'type', 'genre', 'birthday', 'end', 'biography',
                     'tags')
    PUBLIC_FIELDS_WIDGETS = {'biography': OppsEditor()}
    TYPE_CHOICES = (('artist', _(u'Artist')), ('band', _(u'Band')))
    biography = models.TextField(_(u'biography'))
    # it will use Wiki title as name
    genre = models.ForeignKey('Genre',
                              null=True,
                              blank=True,
                              verbose_name=_(u'music genre'))
    birthday = models.DateField(_(u'birthday'))
    type = models.CharField(_(u'type'), max_length=10, choices=TYPE_CHOICES)
    end = models.DateField(_(u'end/death'), null=True, blank=True)

    class Meta:
        verbose_name = _(u'musician')
        verbose_name_plural = _(u'musicians')

    def __unicode__(self):
        return self.title
Ejemplo n.º 5
0
 class Meta:
     model = BlogPost
     widgets = {'content': OppsEditor()}
Ejemplo n.º 6
0
 class Meta:
     model = InfographicItem
     widgets = {"description": OppsEditor()}
Ejemplo n.º 7
0
 class Meta:
     model = Infographic
     widgets = {"headline": OppsEditor(), "description": OppsEditor()}
Ejemplo n.º 8
0
 class Meta:
     model = Image
     widgets = {'description': OppsEditor()}
     fields = ('site', 'title', 'archive', 'description', 'tags', 'source')
Ejemplo n.º 9
0
 class Meta:
     model = Image
     widgets = {'description': OppsEditor()}
Ejemplo n.º 10
0
 class Meta:
     model = FlatPage
     widgets = {'content': OppsEditor()}
Ejemplo n.º 11
0
 class Meta:
     model = Album
     widgets = {'headline': OppsEditor()}
Ejemplo n.º 12
0
 class Meta:
     model = Poll
     widgets = {"headline": OppsEditor()}