mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #30839 -- Fixed Field.__deepcopy__() so forms don't share error messages.
This commit is contained in:
committed by
Mariusz Felisiak
parent
06909fe084
commit
a28d1b38e5
@@ -199,6 +199,7 @@ class Field:
|
||||
result = copy.copy(self)
|
||||
memo[id(self)] = result
|
||||
result.widget = copy.deepcopy(self.widget, memo)
|
||||
result.error_messages = self.error_messages.copy()
|
||||
result.validators = self.validators[:]
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user