Skip to content

Commit 466575b

Browse files
committed
Lowercase the input
1 parent a0049dd commit 466575b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ class IPAddressField(CharField):
662662
}
663663

664664
def __init__(self, protocol='both', unpack_ipv4=False, **kwargs):
665-
self.protocol = protocol
665+
self.protocol = protocol.lower()
666666
self.unpack_ipv4 = unpack_ipv4
667667
super(IPAddressField, self).__init__(**kwargs)
668668
validators, error_message = ip_address_validators(protocol, unpack_ipv4)

0 commit comments

Comments
 (0)