[Fixed]-Django dicitionary from formset errors

1👍

formset.errors will actually return a list of dictionaries. So for your case, you’ll want a nested for loop. The following example will iterate over the list and each list’s dictionary values.

for dict in formset.errors
    for error in dict.values
        error
    endfor
endfor         

OR

formset.non_form_errors

Leave a comment