diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-06-08 09:55:30 +1200 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-06-12 11:33:08 +1200 |
commit | 4d6894ccbbd388529c3d0dee1580f09f8e4a7426 (patch) | |
tree | 6b4d0ef7e6c4961d038e116315d94df9e6471c2f /urls.py | |
parent | 5e6a50c07d9a3fe618d693444c6aebb2b48ac0cc (diff) | |
download | openembedded-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)), ) |