mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Fix bug in escape_curly_brackets (#6909)
This commit is contained in:
parent
b4db2dfacf
commit
37dcd55370
|
@ -38,9 +38,7 @@ def escape_curly_brackets(url_path):
|
|||
"""
|
||||
Double brackets in regex of url_path for escape string formatting
|
||||
"""
|
||||
if ('{' and '}') in url_path:
|
||||
url_path = url_path.replace('{', '{{').replace('}', '}}')
|
||||
return url_path
|
||||
return url_path.replace('{', '{{').replace('}', '}}')
|
||||
|
||||
|
||||
def flatten(list_of_lists):
|
||||
|
|
Loading…
Reference in New Issue
Block a user