MCPcopy Create free account
hub / github.com/encode/django-rest-framework / _generate_converter_name

Function _generate_converter_name

rest_framework/urlpatterns.py:30–34  ·  view source on GitHub ↗
(allowed)

Source from the content-addressed store, hash-verified

28
29
30def _generate_converter_name(allowed):
31 converter_name = 'drf_format_suffix'
32 if allowed:
33 converter_name += '_' + '_'.join(allowed)
34 return converter_name
35
36
37def apply_suffix_patterns(urlpatterns, suffix_pattern, suffix_required, suffix_route=None):

Callers 1

format_suffix_patternsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected