﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33130	ErrorDict doesn't pass the dict type check in JsonResponse.	Jaap Roes	Jaap Roes	"Just ran the test suite of a project on Django 4.0a1 (with Python 3.8) and ran into the following issue:

We have a fairly simple `FormView` that defines the following `form_invalid` method:

{{{
def form_invalid(self, form):
    return JsonResponse(form.errors, status=400)
}}}

This worked fine before, but with Django 4 this raises the following error:

`TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.`

Wrapping `form.errors` with `dict()` fixes this, but I'm not sure this should be necessary."	Bug	closed	Forms	4.0	Release blocker	fixed		David Smith	Ready for checkin	1	0	0	0	0	0
