Author: mtredinnick
Date: 2007-06-26 07:59:49 -0500 (Tue, 26 Jun 2007)
New Revision: 5544
Modified:
django/trunk/django/db/models/fields/__init__.py
Log:
Fixed #4686 -- Do not permit empty strings in IPAddressField. Should be fully
backwards compatible, but fixes an Oracle subtlety. Thanks, Ian Kelly.
Modified: django/trunk/django/db/models/fields/__init__.py
===================================================================
--- django/trunk/django/db/models/fields/__init__.py 2007-06-26 12:58:42 UTC
(rev 5543)
+++ django/trunk/django/db/models/fields/__init__.py 2007-06-26 12:59:49 UTC
(rev 5544)
@@ -800,6 +800,7 @@
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)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---