bitbake: toaster: Fix typo in returning pk list of layer versions in current project

This was accidentally returning the primary key of the ProjectLayer
rather than the ProjectLayer.Layer_Version.pk

(Bitbake rev: b20f3626148e89af0e9fcfca911a5a1e4e355a41)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood
2015-10-09 10:32:40 +01:00
committed by Richard Purdie
parent d6d680d2e5
commit 2bebcd4995

View File

@@ -222,7 +222,7 @@ class Project(models.Model):
if pk is False:
return layer_versions
else:
return layer_versions.values_list('pk', flat=True)
return layer_versions.values_list('layercommit__pk', flat=True)
def get_available_machines(self):