Fred

ValidationError: ['ManagementForm data is missing or has been tampered with']

django Icon

ValidationError

['ManagementForm data is missing or has been tampered with']

An unhandled exception occurred on line 47
45
    if request.method == 'POST':
46
        formset = AddRecipeFormset(data=request.POST)
47
        if formset.is_valid(): …
48
            formset.save()
49
            return redirect(reverse_lazy("planner-home"))

Solution

Added {{ formset.management_form }} and <fieldset> tags to template.            
Mar 04, 2021 Anyone

0 replies


Install the browser extension

Found this solution helpful? Try our extension for quick solutions to your Django errors.

Chrome logo Add to Chrome - It's free