admin widget for django-wysiwyg-redactor

42 views
Skip to first unread message

Michał Janowski

unread,
Feb 8, 2016, 7:42:43 AM2/8/16
to django-modeltranslation
Hello,

How to get it work together translation admin and wysiwyg editor.

I tried something like this:

class Article(models.Model):
    title
= models.CharField()
    content
= models.TextField()


class ArticleForm(forms.ModelForm):
   
class Meta:
        widgets
= {
           
'content': RedactorEditor(),
       
}


class ArticleAdmin(TabbedDjangoJqueryTranslationAdmin):
    form
= ArticleForm



admin
.site.register(ArticleForm, ArticleAdmin)

but it doesn't work. No errors, Tab widget is not displayed but wysiwyg editor is working fine.

Reply all
Reply to author
Forward
0 new messages