Skip to content

Commit 2df58da

Browse files
committed
retain ordering of paths as provided in urlconf; only sort methods
1 parent a0079c9 commit 2df58da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rest_framework/schemas/generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def endpoint_ordering(endpoint):
5454
'PATCH': 3,
5555
'DELETE': 4
5656
}.get(method, 5)
57-
return (path, method_priority)
57+
return (method_priority,)
5858

5959

6060
_PATH_PARAMETER_COMPONENT_RE = re.compile(

0 commit comments

Comments
 (0)