Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #4686 -- Do not permit empty strings in IPAddressField. Should …

…be fully

backwards compatible, but fixes an Oracle subtlety. Thanks, Ian Kelly.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4ac1de31cd02248b8847f7c119e205bf6e34559e 1 parent fedcabe
@malcolmt malcolmt 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
@@ -800,6 +800,7 @@ def formfield(self, **kwargs):
return super(IntegerField, self).formfield(**defaults)
class IPAddressField(Field):
+ empty_strings_allowed = False
def __init__(self, *args, **kwargs):
kwargs['maxlength'] = 15
Field.__init__(self, *args, **kwargs)
Please sign in to comment.
Something went wrong with that request. Please try again.