mirror of
https://git.yoctoproject.org/poky
synced 2026-02-15 05:03:03 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
0f602c1a22
commit
717c636d71
@@ -18,7 +18,6 @@
|
||||
|
||||
|
||||
from django.conf.urls import patterns, include, url
|
||||
from django.views.generic import RedirectView
|
||||
|
||||
urlpatterns = patterns('bldcollector.views',
|
||||
# landing point for pushing a bitbake_eventlog.json file to this toaster instace
|
||||
|
||||
@@ -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)),
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user