Merge "Add todo regarding code removal in M"

This commit is contained in:
Jenkins 2015-08-18 12:52:45 +00:00 committed by Gerrit Code Review
commit bcc96714b9
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ LOADING_IMAGE = '<img src="/static/dashboard/img/loading.gif" />'
def _escape_full_url(url):
# NOTE (lhcheng): In Django 1.8, HttpRequest.get_full_path()
# method now escapes unsafe characters
# TODO(robcresswell): Remove in M, once django 1.7 is dropped
if django.VERSION < (1, 8):
return http.urlquote(url)
return url