mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
bitbake: toaster: update Toaster for Django 1.11
Toaster needs to accomodate API changes in Django 1.11. [YOCTO #12192] (Bitbake rev: 1b34e3c0075b4bb8a4800fef3e12c3f39743973c) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7f7154dda9
commit
4422d91120
@@ -17,7 +17,7 @@
|
|||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
|
||||||
from django.conf.urls import patterns, include, url
|
from djaV2 ngo.conf.urls import include, url
|
||||||
|
|
||||||
import bldcollector.views
|
import bldcollector.views
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
from django.conf.urls import patterns, include, url
|
from django.conf.urls import include, url
|
||||||
from django.views.generic import RedirectView, TemplateView
|
from django.views.generic import RedirectView, TemplateView
|
||||||
|
|
||||||
from django.http import HttpResponseBadRequest
|
from django.http import HttpResponseBadRequest
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ def _validate_input(field_input, model):
|
|||||||
return None, invalid + str(field_input_list)
|
return None, invalid + str(field_input_list)
|
||||||
|
|
||||||
# Check we are looking for a valid field
|
# Check we are looking for a valid field
|
||||||
valid_fields = model._meta.get_all_field_names()
|
valid_fields = [f.name for f in model._meta.get_fields()]
|
||||||
for field in field_input_list[0].split(AND_VALUE_SEPARATOR):
|
for field in field_input_list[0].split(AND_VALUE_SEPARATOR):
|
||||||
if True in [field.startswith(x) for x in valid_fields]:
|
if True in [field.startswith(x) for x in valid_fields]:
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ TEMPLATES = [
|
|||||||
'django.template.context_processors.tz',
|
'django.template.context_processors.tz',
|
||||||
'django.contrib.messages.context_processors.messages',
|
'django.contrib.messages.context_processors.messages',
|
||||||
# Custom
|
# Custom
|
||||||
'django.core.context_processors.request',
|
'django.template.context_processors.request',
|
||||||
'toastergui.views.managedcontextprocessor',
|
'toastergui.views.managedcontextprocessor',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
from django.conf.urls import patterns, include, url
|
from django.conf.urls import include, url
|
||||||
from django.views.generic import RedirectView, TemplateView
|
from django.views.generic import RedirectView, TemplateView
|
||||||
from django.views.decorators.cache import never_cache
|
from django.views.decorators.cache import never_cache
|
||||||
import bldcollector.views
|
import bldcollector.views
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
Django>1.8,<1.9.9
|
Django>1.8,<1.11.9
|
||||||
beautifulsoup4>=4.4.0
|
beautifulsoup4>=4.4.0
|
||||||
pytz
|
pytz
|
||||||
|
|||||||
Reference in New Issue
Block a user