We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4db2df commit 37dcd55Copy full SHA for 37dcd55
rest_framework/routers.py
@@ -38,9 +38,7 @@ def escape_curly_brackets(url_path):
38
"""
39
Double brackets in regex of url_path for escape string formatting
40
41
- if ('{' and '}') in url_path:
42
- url_path = url_path.replace('{', '{{').replace('}', '}}')
43
- return url_path
+ return url_path.replace('{', '{{').replace('}', '}}')
44
45
46
def flatten(list_of_lists):
0 commit comments