mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
Merge 9440c86c4a
into 8f6173cd8a
This commit is contained in:
commit
35887819f9
|
@ -27,10 +27,10 @@ def apply_suffix_patterns(urlpatterns, suffix_pattern, suffix_required):
|
|||
view = urlpattern.callback
|
||||
kwargs = urlpattern.default_args
|
||||
name = urlpattern.name
|
||||
# Add in both the existing and the new urlpattern
|
||||
# Add in both the new and the existing urlpattern
|
||||
ret.append(url(regex, view, kwargs, name))
|
||||
if not suffix_required:
|
||||
ret.append(urlpattern)
|
||||
ret.append(url(regex, view, kwargs, name))
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user