diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 2 |
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 |