dominno / django-moderation

django-moderation is reusable application for Django framework, that allows to moderate any model objects.
BSD 3-Clause "New" or "Revised" License
269 stars 90 forks source link

Can't choose form for ModerationAdmin #198

Open awerner25 opened 3 years ago

awerner25 commented 3 years ago

Hello,

I want to change the widget for an item in admin section with this code :+1:

class ArticleAdminForm(forms.ModelForm):

    class Meta:
        model = Article
        widgets = {
            'image_test': forms.RadioSelect,
        }
        fields = '__all__'

class ArticleAdmin(ModerationAdmin):
    form = ArticleAdminForm
[...]

It's works with admin.ModelAdmin but not with ModerationAdmin. How I can change the widget ?