diff options
Diffstat (limited to 'django/shortcuts.py')
| -rw-r--r-- | django/shortcuts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/shortcuts.py b/django/shortcuts.py index 415e51887e..5b1ec7d4ab 100644 --- a/django/shortcuts.py +++ b/django/shortcuts.py @@ -197,7 +197,7 @@ def resolve_url(to, *args, **kwargs): if isinstance(to, six.string_types): # Handle relative URLs - if any(to.startswith(path) for path in ('./', '../')): + if to.startswith(('./', '../')): return to # Next try a reverse URL resolution. |
