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 ?
Hello,
I want to change the widget for an item in admin section with this code :+1:
It's works with admin.ModelAdmin but not with ModerationAdmin. How I can change the widget ?