]> git.ipfire.org Git - thirdparty/patchwork.git/commit
requirements: Bump Django to 3.2.x, djangorestframework to 4.16.0
authorStephen Finucane <stephen@that.guru>
Fri, 30 Sep 2022 12:17:46 +0000 (13:17 +0100)
committerStephen Finucane <stephen@that.guru>
Fri, 30 Sep 2022 16:09:38 +0000 (17:09 +0100)
commit84ec76dd1d27877e30ac178bb2e4b9964afe12ac
tree292e38d85bc7a945fb072c955c4a8295576d101f
parente327d46ac86066db96ff16eabded7821204d31e2
requirements: Bump Django to 3.2.x, djangorestframework to 4.16.0

There are two issues to be addressed:

  RemovedInDjango50Warning: Passing response to assertFormError() is
  deprecated. Use the form object directly:

  RemovedInDjango50Warning: The "default.html" templates for forms and
  formsets will be removed. These were proxies to the equivalent
  "table.html" templates, but the new "div.html" templates will be the
  default from Django 5.0. Transitional renderers are provided to allow
  you to opt-in to the new output style now. See
  https://docs.djangoproject.com/en/4.1/releases/4.1/ for more details

Nothing complicated in fixing either of these. For the former, we must
do as we're told and use the form object directly. For the latter, we
need to configure our own form renderer so we can continue using the
table form renderer for now.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/forms.py
patchwork/settings/base.py
patchwork/tests/views/test_mail.py
patchwork/tests/views/test_patch.py
patchwork/tests/views/test_user.py
releasenotes/notes/django-4-1-support-bcbe65a71d235b43.yaml [new file with mode: 0644]
tox.ini