(self, data)
| 869 | self.validators.extend(validators) |
| 870 | |
| 871 | def to_internal_value(self, data): |
| 872 | if not isinstance(data, str): |
| 873 | self.fail('invalid', value=data) |
| 874 | |
| 875 | if ':' in data: |
| 876 | try: |
| 877 | if self.protocol in ('both', 'ipv6'): |
| 878 | return clean_ipv6_address(data, self.unpack_ipv4) |
| 879 | except DjangoValidationError: |
| 880 | self.fail('invalid', value=data) |
| 881 | |
| 882 | return super().to_internal_value(data) |
| 883 | |
| 884 | |
| 885 | # Number types... |
nothing calls this directly
no test coverage detected