Exemple #1
0
 class Meta:
     model = Promo
     widgets = {
         "headline": OppsEditor(),
         "description": OppsEditor(),
         "confirmation_email_html": OppsEditor(),
         "rules": OppsEditor(),
         "result": OppsEditor()
     }
Exemple #2
0
    class Meta:
        model = Audio

        if not settings.OPPS_MULTIMEDIAS_USE_CONTENT_FIELD:
            exclude = ['content']
        else:
            widgets = {'content': OppsEditor()}
Exemple #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')
Exemple #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
Exemple #5
0
 class Meta:
     model = BlogPost
     widgets = {'content': OppsEditor()}
Exemple #6
0
 class Meta:
     model = InfographicItem
     widgets = {"description": OppsEditor()}
Exemple #7
0
 class Meta:
     model = Infographic
     widgets = {"headline": OppsEditor(), "description": OppsEditor()}
Exemple #8
0
 class Meta:
     model = Image
     widgets = {'description': OppsEditor()}
     fields = ('site', 'title', 'archive', 'description', 'tags', 'source')
Exemple #9
0
 class Meta:
     model = Image
     widgets = {'description': OppsEditor()}
Exemple #10
0
 class Meta:
     model = FlatPage
     widgets = {'content': OppsEditor()}
Exemple #11
0
 class Meta:
     model = Album
     widgets = {'headline': OppsEditor()}
Exemple #12
0
 class Meta:
     model = Poll
     widgets = {"headline": OppsEditor()}