diff --git a/rest_framework/fields.py b/rest_framework/fields.py index d19231a2f..1731c5f24 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -662,7 +662,7 @@ class IPAddressField(CharField): } def __init__(self, protocol='both', unpack_ipv4=False, **kwargs): - self.protocol = protocol + self.protocol = protocol.lower() self.unpack_ipv4 = unpack_ipv4 super(IPAddressField, self).__init__(**kwargs) validators, error_message = ip_address_validators(protocol, unpack_ipv4)