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

Method __init__

rest_framework/fields.py:788–791  ·  view source on GitHub ↗
(self, regex, **kwargs)

Source from the content-addressed store, hash-verified

786 }
787
788 def __init__(self, regex, **kwargs):
789 super().__init__(**kwargs)
790 validator = RegexValidator(regex, message=self.error_messages['invalid'])
791 self.validators.append(validator)
792
793
794class SlugField(CharField):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected