diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-06-26 12:59:49 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-06-26 12:59:49 +0000 |
| commit | 4ac1de31cd02248b8847f7c119e205bf6e34559e (patch) | |
| tree | 27fb5b4446b576e03203635a2557e4370ee12da1 | |
| parent | fedcabea9ec31bbff2a8c4f7e21fc214dde9a9a8 (diff) | |
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
| -rw-r--r-- | django/db/models/fields/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 016e26099b..3af8a41adc 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -800,6 +800,7 @@ class IntegerField(Field): 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) |
