Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refs #16234: Avoid GenericIPAddressField clobbering Field default_err…

…or_messages dict.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 13efd1046526808815e727093daca0ae3bf538f2 1 parent 7116c31
@kmtracey kmtracey authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/db/models/fields/__init__.py
View
1  django/db/models/fields/__init__.py
@@ -937,6 +937,7 @@ def formfield(self, **kwargs):
class GenericIPAddressField(Field):
empty_strings_allowed = True
description = _("IP address")
+ default_error_messages = {}
def __init__(self, protocol='both', unpack_ipv4=False, *args, **kwargs):
self.unpack_ipv4 = unpack_ipv4
Please sign in to comment.
Something went wrong with that request. Please try again.