aboutsummaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-06-08 09:55:30 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2016-06-12 11:33:08 +1200
commit4d6894ccbbd388529c3d0dee1580f09f8e4a7426 (patch)
tree6b4d0ef7e6c4961d038e116315d94df9e6471c2f /urls.py
parent5e6a50c07d9a3fe618d693444c6aebb2b48ac0cc (diff)
downloadopenembedded-core-contrib-4d6894ccbbd388529c3d0dee1580f09f8e4a7426.tar.gz
Explicitly specify temporary redirection
Django 1.8 warns that the default for the "permanent" parameter to RedirectView is changing in 1.9 from True to False, but I believe we should be specifying False for these redirections - these are not just redirections from old URLs and may in fact change in the future if the site structure changes. Part of the implementation for [YOCTO #9620]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index 98fc734814..649635c96f 100644
--- a/urls.py
+++ b/urls.py
@@ -16,6 +16,6 @@ urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include('registration.backends.default.urls')),
url(r'^captcha/', include('captcha.urls')),
- url(r'.*', RedirectView.as_view(url='/layerindex/')),
+ url(r'.*', RedirectView.as_view(url='/layerindex/', permanent=False)),
)