MCPcopy Index your code
hub / github.com/encode/django-rest-framework / __init__

Method __init__

rest_framework/fields.py:864–869  ·  view source on GitHub ↗
(self, protocol='both', **kwargs)

Source from the content-addressed store, hash-verified

862 }
863
864 def __init__(self, protocol='both', **kwargs):
865 self.protocol = protocol.lower()
866 self.unpack_ipv4 = (self.protocol == 'both')
867 super().__init__(**kwargs)
868 validators = ip_address_validators(protocol, self.unpack_ipv4)
869 self.validators.extend(validators)
870
871 def to_internal_value(self, data):
872 if not isinstance(data, str):

Callers

nothing calls this directly

Calls 2

ip_address_validatorsFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected