S
S
Stepan Krapivin2014-04-18 21:22:02
Django
Stepan Krapivin, 2014-04-18 21:22:02

Django form wizard instead of executing the done() method jumps to the first form?

Actually, on the local server, the wizard works as it should, and after filling out all the forms, it executes the done () method.
In production, instead of executing the done() method, the last step of the wizard switches to the first step, and the form fields are cleared.
Tell me which way to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EvilX, 2014-04-21
@EvilX

Most likely missing from the template.

{% if wizard.form.forms %}
    {{ wizard.form.management_form }}
    {% for form in wizard.form.forms %}
        {{ form }}
    {% endfor %}
{% else %}
    {{ wizard.form }}
{% endif %}

Or, if file upload is used, Storage.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question