[Answer]-When using crispy_forms, what controls the form name parameter?

1👍

These names are the template context variables which are passed in the view to the render() function:

return render(request, 'my_form.html', {'form': form})

return render(request, 'my_form.html', {'form': my_form})

return render(request, 'my_form.html', {'form_1': form1, 'form_2': form2})

return render(request, 'my_form.html', {'form_1': first_form,
                                        'form_2': second_form})

Leave a comment