Resolve merge conflict

This commit is contained in:
Artem Homenko 2017-02-06 15:24:08 +02:00
parent e59e2c4cca
commit 8ff378d730

View File

@ -257,9 +257,9 @@ class SimpleRouter(BaseRouter):
) )
# If there is no prefix, the first part of the url is probably # If there is no prefix, the first part of the url is probably
# controlled by project's urls.py and the router is in an app, # controlled by project's urls.py and the router is in an app,
# so a slash in the beginning will (A) cause Django to give # so a slash in the beginning will (A) cause Django to give
# warnings and (B) generate URLS that will require using '//'. # warnings and (B) generate URLS that will require using '//'.
if not prefix and regex[:2] == '^/': if not prefix and regex[:2] == '^/':
regex = '^' + regex[2:] regex = '^' + regex[2:]