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:13:07 +0000 |
commit | 717c636d71e8cd32cf8e05968adbf5c835bcfb31 (patch) | |
tree | e7602a9e31b58625f77ad531a8ed1f2f5528029f /bitbake/lib/toaster/toastermain/urls.py | |
parent | 0f602c1a22ba21cba5372dbf03a1c41d7116f596 (diff) | |
download | poky-717c636d71e8cd32cf8e05968adbf5c835bcfb31.tar.gz |
bitbake: 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]
(Bitbake rev: 4aa09488bfe65cb365356b320cd9865643bb4fe5)
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 'bitbake/lib/toaster/toastermain/urls.py')
-rw-r--r-- | bitbake/lib/toaster/toastermain/urls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastermain/urls.py b/bitbake/lib/toaster/toastermain/urls.py index 5ce5a924d8..534679dc50 100644 --- a/bitbake/lib/toaster/toastermain/urls.py +++ b/bitbake/lib/toaster/toastermain/urls.py | |||
@@ -45,7 +45,7 @@ urlpatterns = patterns('', | |||
45 | url(r'^orm/eventfile$', 'bldcollector.views.eventfile'), | 45 | url(r'^orm/eventfile$', 'bldcollector.views.eventfile'), |
46 | 46 | ||
47 | # if no application is selected, we have the magic toastergui app here | 47 | # if no application is selected, we have the magic toastergui app here |
48 | url(r'^$', never_cache(RedirectView.as_view(url='/toastergui/'))), | 48 | url(r'^$', never_cache(RedirectView.as_view(url='/toastergui/', permanent=True))), |
49 | ) | 49 | ) |
50 | 50 | ||
51 | import toastermain.settings | 51 | import toastermain.settings |