Oracle will then convert that null to the empty string once it's
retrieved, because GenericIPAddressField.empty_strings_allowed = True.
Other backends will return None.
I think the right thing to do is set empty_strings_allowed = False on
GenericIPAddressField, but I'm not sure if that'll have other
implications. I'll put together a patch later today.
--
Ticket URL: <https://code.djangoproject.com/ticket/24078>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => jarshwah
* needs_better_patch: => 0
* status: new => assigned
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24078#comment:1>
* has_patch: 0 => 1
* stage: Unreviewed => Ready for checkin
Comment:
See PR https://github.com/django/django/pull/3840
Not sure if release notes are required, or if this could be considered a
backwards incompatible change.
--
Ticket URL: <https://code.djangoproject.com/ticket/24078#comment:2>
Comment (by loic):
All bug fixes are backwards incompatible by nature, I don't think release
notes are required here.
LGTM.
--
Ticket URL: <https://code.djangoproject.com/ticket/24078#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"5a4ac4ead986387216e0c0e1b4d4b6a537f87e0b"]:
{{{
#!CommitTicketReference repository=""
revision="5a4ac4ead986387216e0c0e1b4d4b6a537f87e0b"
Fixed #24078 -- Removed empty strings from GenericIPAddressField
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24078#comment:4>