summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorParth Verma <v.parth98@gmail.com>2023-11-23 20:46:17 -0800
committerGitHub <noreply@github.com>2023-11-24 05:46:17 +0100
commiteabfa2d0e38670365aa74117ad2f8710b81065c5 (patch)
tree9bc97757f38e4e6e5e9bb26dd1cf77c4df2cf8f2 /django/forms
parenta8adb6aa6cc6b9efd043acc980b5744bc211c760 (diff)
Fixed #34818 -- Prevented GenericIPAddressField from mutating error messages.
Co-authored-by: Parth Verma <parth.verma@gmail.com>
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py
index 3a0510ffc9..d1ba8af654 100644
--- a/django/forms/fields.py
+++ b/django/forms/fields.py
@@ -1288,7 +1288,7 @@ class GenericIPAddressField(CharField):
self.unpack_ipv4 = unpack_ipv4
self.default_validators = validators.ip_address_validators(
protocol, unpack_ipv4
- )[0]
+ )
super().__init__(**kwargs)
def to_python(self, value):