Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Karen Tracey authored June 13, 2011

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django/db/models/fields/__init__.py
1  django/db/models/fields/__init__.py
@@ -937,6 +937,7 @@ def formfield(self, **kwargs):
937 937
 class GenericIPAddressField(Field):
938 938
     empty_strings_allowed = True
939 939
     description = _("IP address")
  940
+    default_error_messages = {}
940 941
 
941 942
     def __init__(self, protocol='both', unpack_ipv4=False, *args, **kwargs):
942 943
         self.unpack_ipv4 = unpack_ipv4

0 notes on commit 13efd10

Please sign in to comment.
Something went wrong with that request. Please try again.