[bitbake-devel] [PATCH V2 2/6] toaster: update Toaster for Django 1.11

Richard Purdie richard.purdie at linuxfoundation.org
Mon Dec 18 15:08:06 UTC 2017


On Thu, 2017-11-30 at 00:55 -0800, David Reyna wrote:
> --- a/lib/toaster/toastergui/views.py
> +++ b/lib/toaster/toastergui/views.py
> @@ -277,7 +277,7 @@ def _validate_input(field_input, model):
>              return None, invalid + str(field_input_list)
>  
>          V2 # 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

Sorry about the delay with these. Somehow there is a "V2" in the patch
that caused it to fail to apply. I've fixed that up manually and
applied it.

Cheers,

Richard



More information about the bitbake-devel mailing list