mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
bitbake: toaster: update Toaster for Django 1.11
Toaster needs to accomodate API changes in Django 1.11. [YOCTO #12192] (Bitbake rev: bfec25108d8e00a8ca2c93859a03082bea19789c) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
8eaf495b05
commit
6b132acd0a
|
|
@ -17,7 +17,7 @@
|
|||
# 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
|
||||
|
||||
import bldcollector.views
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 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.http import HttpResponseBadRequest
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ def _validate_input(field_input, model):
|
|||
return None, invalid + str(field_input_list)
|
||||
|
||||
# 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):
|
||||
if True in [field.startswith(x) for x in valid_fields]:
|
||||
break
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ TEMPLATES = [
|
|||
'django.template.context_processors.tz',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
# Custom
|
||||
'django.core.context_processors.request',
|
||||
'django.template.context_processors.request',
|
||||
'toastergui.views.managedcontextprocessor',
|
||||
|
||||
],
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 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.decorators.cache import never_cache
|
||||
import bldcollector.views
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
Django>1.8,<1.9.9
|
||||
Django>1.8,<1.11.9
|
||||
beautifulsoup4>=4.4.0
|
||||
pytz
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user