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

Method to_python

rest_framework/urlpatterns.py:21–22  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

19 regex = suffix_pattern
20
21 def to_python(self, value):
22 return value.strip('./')
23
24 def to_url(self, value):
25 return '.' + value + '/'

Callers 2

to_internal_valueMethod · 0.45
get_objectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected