From 13efd1046526808815e727093daca0ae3bf538f2 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Mon, 13 Jun 2011 04:31:56 +0000 Subject: [PATCH] Refs #16234: Avoid GenericIPAddressField clobbering Field default_error_messages dict. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16390 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/fields/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 4707cb4a4c..94a9b65368 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -937,6 +937,7 @@ class IPAddressField(Field): 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