Django FormWizard and Admin Application

I have a number of forms that I need to complete the user, which is ideal for the formwizard application. However, I also need an admin application and would like to configure everything to invoke multiple forms in the admin application.

Is it possible / easy to integrate the "formwizard" into the admin application?

If not, does the admin template extend with a viable option and manually connect the rest? Opinions?

Update: Some clarity in my "problem".

I wanted to use the admin application because I thought that I only need basic models - one of them can be divided into many forms, which would be the role of formwizard.

What I have:

Form 1:10 yes / no questions (each yes corresponds to a new form that must be completed)
if yes, the corresponding forms are placed on the form and displayed for completion by the user.


However, the proposed option (modelforms + styling) would take care of most of my problems, which, I believe, seem to be a simpler solution.

+3
source share
2 answers

There you can do a lot, but you need to be more specific with respect to what you mean by the word “integrate formwizard into the admin application” and “run multiple forms in the admin application”.

An administrative application in its core is basically a wrapper around a set of ModelForms models, so if you just create a FormWizard using ModelForms and delete the administration style on it, you can be 80% of it.

+1
source

You have a source, and this is Python, so ... you can read the source of the admin application to find out what parameters it has.

Take a look at http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates .
Looks like you can easily override templates. They even provide step-by-step instructions for adding your own custom admin templates.

-3
source

All Articles