This commit is contained in:
Matt Long 2017-04-19 23:23:51 +00:00 committed by GitHub
commit 35887819f9

View File

@ -27,10 +27,10 @@ def apply_suffix_patterns(urlpatterns, suffix_pattern, suffix_required):
view = urlpattern.callback view = urlpattern.callback
kwargs = urlpattern.default_args kwargs = urlpattern.default_args
name = urlpattern.name 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: if not suffix_required:
ret.append(urlpattern) ret.append(urlpattern)
ret.append(url(regex, view, kwargs, name))
return ret return ret