lorenzomorandini/django-admin-material

Radio buttons not rendering

bastiaan85 opened this issue · 1 comments

To reproduce, for example override the choice_1 field in the demo's Model1Admin:

class Model1Form(ModelForm):
    choice_1 = ChoiceField(choices=[(1, 'a'),
                                    (2, 'b'),
                                    (3, 'c')],
                           widget=RadioSelect)

@admin.register(models.Model1)
class Model1Admin(admin.ModelAdmin):
    form = Model1Form
    list_display = ('id', 'text_1', 'text_2')
    search_fields = ('text_1', 'text_2')
    inlines = [Model3Inline]
    fieldsets = (
        (None, {
            'fields': (
                ('text_1', 'text_2'),
                ('choice_1'),
                'boolean_1'
            )
        }),
    )

The result is an option list without the actual buttons: screenshot

Will look into it