IPAddressField should have empty_strings_allowed = False
|Reported by:||Owned by:||Jacob|
|Has patch:||yes||Needs documentation:|
|Needs tests:||Patch needs improvement:|
The empty string isn't a valid value for IPAddressFields, and PostgreSQL in particular won't accept it; NULL should be used instead. However, IPAddressField inherits the attribute empty_strings_allowed = True from the Field class. Additionally, the Oracle backend interprets NULL to mean the empty string unless empty_strings_allowed is False. This patch corrects these inconsistencies.