mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Lowercase the input
This commit is contained in:
parent
a0049dd489
commit
466575bee6
|
@ -662,7 +662,7 @@ class IPAddressField(CharField):
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, protocol='both', unpack_ipv4=False, **kwargs):
|
def __init__(self, protocol='both', unpack_ipv4=False, **kwargs):
|
||||||
self.protocol = protocol
|
self.protocol = protocol.lower()
|
||||||
self.unpack_ipv4 = unpack_ipv4
|
self.unpack_ipv4 = unpack_ipv4
|
||||||
super(IPAddressField, self).__init__(**kwargs)
|
super(IPAddressField, self).__init__(**kwargs)
|
||||||
validators, error_message = ip_address_validators(protocol, unpack_ipv4)
|
validators, error_message = ip_address_validators(protocol, unpack_ipv4)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user