aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-06-10 10:33:15 -0500
committerMichael Wood <michael.g.wood@intel.com>2016-06-23 12:21:04 +0100
commitba021eef6340720d7f0139390122193758080e0a (patch)
tree3a3c7dee30b6edcadd038ad0d6cad8e1c512d40e
parent452cd3577e259e4d470412c17dfa1ddc543dce76 (diff)
downloaderror-report-web-ba021eef6340720d7f0139390122193758080e0a.tar.gz
error-report-web-ba021eef6340720d7f0139390122193758080e0a.tar.bz2
error-report-web-ba021eef6340720d7f0139390122193758080e0a.zip
urls: RedirectView, fix warnings about change of default value in django 1.9
RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning. url(r'^$', RedirectView.as_view(pattern_name="main")), RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning. url(r'^Errors/Search/Args/$', RedirectView.as_view(pattern_name="Post.views.search",query_string=True), {'mode':results_mode.SEARCH }), [YOCTO #9733] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
-rw-r--r--project/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/project/urls.py b/project/urls.py
index 7b6f643..0e8f39c 100644
--- a/project/urls.py
+++ b/project/urls.py
@@ -37,7 +37,7 @@ urlpatterns = patterns('',
url(r'^(?i)ClientPost/JSON/$', 'Post.views.addData', { 'return_json' : True }),
url(r'^(?i)Errors/$', 'Post.views.default', name="main"),
url(r'^(?i)Statistics/$', TemplateView.as_view(template_name="home.html"), name = "statistics"),
- url(r'^$', RedirectView.as_view(pattern_name="main")),
+ url(r'^$', RedirectView.as_view(pattern_name="main", permanent=True)),
# Url for backwards compatibility with old search links
- url(r'^Errors/Search/Args/$', RedirectView.as_view(pattern_name="Post.views.search",query_string=True), {'mode':results_mode.SEARCH }),
+ url(r'^Errors/Search/Args/$', RedirectView.as_view(pattern_name="Post.views.search",query_string=True,permanent=True), {'mode':results_mode.SEARCH }),
)