Re: FormSet.is_valid() raises ValidationError

2019-11-04 Thread Benoit Blanchon
Hi! Thank you very much for this answer, but that's not what I'm talking about. I know that you must include the management form in the template, that's not the problem. I worry about a malicious user (i.e., a hacker) that would purposely temper the management form in order to raise an exception

Re: FormSet.is_valid() raises ValidationError

2019-11-01 Thread Nijo Joseph
Hi, In case of {{ formset }} no probs. but in case of *{{ formset.management_form }}* {% for form in formset %} {{ form }} {% endfor %} *{{ formset.management_form }} is required and of course * {% csrf_token %}. Ref https:

FormSet.is_valid() raises ValidationError

2019-10-29 Thread Benoit Blanchon
Hi, >From what I understand, Form.is_valid() must return False when the form is invalid or incomplete. BaseFormSet, however, raises a ValidationError with the message "ManagementForm data is missing or has been tampered with," when the management form has been tampered. I think this is incor