override get_form

16 views
Skip to first unread message

Panos Laganakos

unread,
May 3, 2014, 5:40:32 AM5/3/14
to django-mode...@googlegroups.com
I'm using modeltranslation along with django-wysiwyg-redactor[0]. Problem is that mt, overrides the get_form function, something that redactor uses to change the widget, like so:

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


so, doing this:

class FlatPageAdmin(FlatPageAdmin, TranslationAdmin):
    form = FlatPageAdminForm

just doesn't work.

Any ideas?


[0] https://github.com/douglasmiranda/django-wysiwyg-redactor
Reply all
Reply to author
Forward
0 new messages