[Fixed]-Django: Formset Submit Button not working

1👍

I solved my problem when i put my main form body in <table> ... </table>

like that :

<form id="CreateExamForm" method="POST" enctypr="multipart/form-data">
                    {% csrf_token %}
                    <table>
                        <div class="panel panel-success">
                            <div class="panel-heading">
                                <h3 class="panel-title">Classe - Matière - Date</h3>
                                <span class="pull-right"><i class="glyphicon glyphicon-chevron-up"></i></span>
                            </div>
                            <div class="panel-body">
                                {% crispy doc_form %}

                                {{ file_form_set.management_form }}
                                {% for f_form in file_form_set %}
                                    <div class="form-inline">
                                        {% crispy f_form %}
                                    </div>
                                {% endfor %}
                            </div>
                        </div>
                    </table>
                    <input type="submit" value="Add recipe" class="submit" />
                </form>
👤Pau

Leave a comment