class Meta: model = Promo widgets = { "headline": OppsEditor(), "description": OppsEditor(), "confirmation_email_html": OppsEditor(), "rules": OppsEditor(), "result": OppsEditor() }
class Meta: model = Audio if not settings.OPPS_MULTIMEDIAS_USE_CONTENT_FIELD: exclude = ['content'] else: widgets = {'content': OppsEditor()}
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')
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
class Meta: model = BlogPost widgets = {'content': OppsEditor()}
class Meta: model = InfographicItem widgets = {"description": OppsEditor()}
class Meta: model = Infographic widgets = {"headline": OppsEditor(), "description": OppsEditor()}
class Meta: model = Image widgets = {'description': OppsEditor()} fields = ('site', 'title', 'archive', 'description', 'tags', 'source')
class Meta: model = Image widgets = {'description': OppsEditor()}
class Meta: model = FlatPage widgets = {'content': OppsEditor()}
class Meta: model = Album widgets = {'headline': OppsEditor()}
class Meta: model = Poll widgets = {"headline": OppsEditor()}