diff options
author | Elliot Smith <elliot.smith@intel.com> | 2015-12-09 19:56:33 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-14 23:12:44 +0000 |
commit | 4aa09488bfe65cb365356b320cd9865643bb4fe5 (patch) | |
tree | 8d6215347e21cd969cbceb979bd871241350eb0d /lib/toaster/toastergui/urls.py | |
parent | c4804b84eaaef6a81027bae5cf8bfe63d949c293 (diff) | |
download | bitbake-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/toastergui/urls.py')
-rw-r--r-- | lib/toaster/toastergui/urls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/urls.py b/lib/toaster/toastergui/urls.py index a1adbb7be..2bf2d99ae 100644 --- a/lib/toaster/toastergui/urls.py +++ b/lib/toaster/toastergui/urls.py @@ -168,5 +168,5 @@ urlpatterns = patterns('toastergui.views', name='xhr_customrecipe'), # default redirection - url(r'^$', RedirectView.as_view( url= 'landing')), + url(r'^$', RedirectView.as_view(url='landing', permanent=True)), ) |