This is roughly what I\'m trying to do:
def post(request):
VehicleFormSet = formset_factory(StaffVehicleForm)
if request.method == \'POST\':
vehi
I do this using javascript. Since the formset renders three management fields
.
you can use javascript to increment the id_TOTAL_FORMS value, and just add in the extra fields. So I'd create my fieldset like this:
VehicleFormSet = modelformset_factory(StaffVehicleForm, extra = 0, max_num = None)
The tricky thing is to create the extra form fields in javascript. I usually use AJAX to fetch a new row from a custom view.