When you use a RedactorWidget in a SortableTabularInline and the SortableTabularInline items get re-ordered, the item that gets reordered no longer displays the content of the RedactorWidget (but appears to allow you to change it).
class QuestionForm(ModelForm):
model = Question
class Meta:
widgets = {
'html': RedactorWidget(editor_options={'lang': 'en'})
}
class QuestionInline(SortableTabularInline):
model = Question
form = QuestionForm
sortable = 'order'
class TestForm(ModelForm):
model = Test
class TestAdmin(ModelAdmin):
form = TestForm
inlines = (QuestionInline,)
admin.site.register(Test, TestAdmin)
When you use a RedactorWidget in a SortableTabularInline and the SortableTabularInline items get re-ordered, the item that gets reordered no longer displays the content of the RedactorWidget (but appears to allow you to change it).