1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #35988 -- Made BaseForm.full_clean() pass renderer to ErrorDict.

This commit is contained in:
Adam Johnson
2024-12-09 11:17:25 +00:00
committed by Sarah Boyce
parent 1860a1afc9
commit 02628c051c
2 changed files with 17 additions and 1 deletions

View File

@@ -316,7 +316,7 @@ class BaseForm(RenderableFormMixin):
"""
Clean all of self.data and populate self._errors and self.cleaned_data.
"""
self._errors = ErrorDict()
self._errors = ErrorDict(renderer=self.renderer)
if not self.is_bound: # Stop further processing.
return
self.cleaned_data = {}