summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2017-11-30 00:55:24 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-18 15:05:29 +0000
commit4422d911200bdb3e85d6c2e7ce287573a8007e87 (patch)
treed0124fe9fdd41a4747f65053461db41ab8a098e5 /bitbake/lib/toaster/toastergui/views.py
parent7f7154dda9c6c342b7e671a7916659238453d661 (diff)
downloadpoky-4422d911200bdb3e85d6c2e7ce287573a8007e87.tar.gz
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>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 334bb4a2e9..209b07dad8 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -277,7 +277,7 @@ def _validate_input(field_input, model):
277 return None, invalid + str(field_input_list) 277 return None, invalid + str(field_input_list)
278 278
279 # Check we are looking for a valid field 279 # Check we are looking for a valid field
280 valid_fields = model._meta.get_all_field_names() 280 valid_fields = [f.name for f in model._meta.get_fields()]
281 for field in field_input_list[0].split(AND_VALUE_SEPARATOR): 281 for field in field_input_list[0].split(AND_VALUE_SEPARATOR):
282 if True in [field.startswith(x) for x in valid_fields]: 282 if True in [field.startswith(x) for x in valid_fields]:
283 break 283 break