class GenericIPAddressField(**kwargs) [source]
A field containing either an IPv4 or an IPv6 address.
Default widget: TextInput
Empty value: '' (an empty string) Normalizes to: A Unicode object. IPv6 addresses are normalized as described below. Validates that the given value is a valid IP address. Error message keys: required, invalid
The IPv6 address normalization follows RFC 4291#section-2.2 section 2.2, including using the IPv4 format suggested in paragraph 3 of that section, like ::ff