summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastermain
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2015-12-09 19:56:33 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-14 23:12:44 +0000
commit4aa09488bfe65cb365356b320cd9865643bb4fe5 (patch)
tree8d6215347e21cd969cbceb979bd871241350eb0d /lib/toaster/toastermain
parentc4804b84eaaef6a81027bae5cf8bfe63d949c293 (diff)
downloadbitbake-4aa09488bfe65cb365356b320cd9865643bb4fe5.tar.gz
toaster: Prevent deprecation warnings for RedirectView
The API for RedirectView is due to change in Django 1.9, which means that Toaster generates deprecation warnings. Set the "permanent" flag when constructing RedirectView instances to prevent this warning. [YOCTO #8364] Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastermain')
-rw-r--r--lib/toaster/toastermain/urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/toastermain/urls.py b/lib/toaster/toastermain/urls.py
index 5ce5a924d..534679dc5 100644
--- a/lib/toaster/toastermain/urls.py
+++ b/lib/toaster/toastermain/urls.py
@@ -45,7 +45,7 @@ urlpatterns = patterns('',
url(r'^orm/eventfile$', 'bldcollector.views.eventfile'),
# if no application is selected, we have the magic toastergui app here
- url(r'^$', never_cache(RedirectView.as_view(url='/toastergui/'))),
+ url(r'^$', never_cache(RedirectView.as_view(url='/toastergui/', permanent=True))),
)
import toastermain.settings