mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26557 -- Converted empty strings to None when saving GenericIPAddressField.
This commit is contained in:
committed by
Tim Graham
parent
2f698cd991
commit
4681d65048
@@ -499,7 +499,7 @@ class BaseDatabaseOperations(object):
|
||||
Transforms a string representation of an IP address into the expected
|
||||
type for the backend driver.
|
||||
"""
|
||||
return value
|
||||
return value or None
|
||||
|
||||
def year_lookup_bounds_for_date_field(self, value):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user