From 50e1e7ef8ef63271717f8bcab76d7151ccf4bb18 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Fri, 10 Dec 2021 12:22:23 +0100 Subject: Fixed #33348 -- Changed SimpleTestCase.assertFormError()/assertFormsetErrors() to take form/formset. Instead of taking a response object and a context name for the form/formset, the two methods now take the object directly. --- docs/internals/deprecation.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/internals') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index ab147725c1..eb6d7f7b2f 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -97,6 +97,10 @@ details on these changes. * The ``django.utils.timezone.utc`` alias to ``datetime.timezone.utc`` will be removed. +* Passing a response object and a form/formset name to + ``SimpleTestCase.assertFormError()`` and ``assertFormsetError()`` will no + longer be allowed. + .. _deprecation-removed-in-4.1: 4.1 -- cgit v1.3