[Django]-Default Django Admin Forms and FormWizard

1👍

I guess it’s a problem with how the form is created and used in the ModelAdmin.
If you call ‘SyllabusAdmin.form’ it will be the class ModelForm, uninitialized.

Afaik ModelAdmin uses get_form to actually create and configure the form.

In your case you would have to do something like

form = SyllabusAdmin(SyllabusModel, admin.site).get_form(request)

to achieve what you want… hope it answers your question.

Leave a comment