Skip to content
Prev Previous commit
Next Next commit
Lowercase the input
  • Loading branch information
andreagrandi committed Mar 26, 2015
commit 466575bee60d2575dc5fb69c6e19e1fab3fd6803
2 changes: 1 addition & 1 deletion rest_framework/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down