diff options
| author | Adam Johnson <me@adamj.eu> | 2024-12-09 15:40:47 +0000 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-12-10 12:14:52 +0100 |
| commit | 4806c42efac790dd65bc890b85904df7bdeb1309 (patch) | |
| tree | a81b462c0611b3a0e8585944b80005e64477e664 /django/forms | |
| parent | 02628c051c18d000256424daffe996c22bed5ae3 (diff) | |
Fixed #35987 -- Made ErrorList.copy() copy the renderer attribute.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/forms/utils.py b/django/forms/utils.py index d24711d1a0..27eabe57dc 100644 --- a/django/forms/utils.py +++ b/django/forms/utils.py @@ -163,6 +163,7 @@ class ErrorList(UserList, list, RenderableErrorMixin): def copy(self): copy = super().copy() copy.error_class = self.error_class + copy.renderer = self.renderer return copy def get_json_data(self, escape_html=False): |
