]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: orm Machines filter don't pass self in as parameter
authorMichael Wood <michael.g.wood@intel.com>
Wed, 7 Oct 2015 03:21:25 +0000 (20:21 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 11 Oct 2015 04:28:40 +0000 (05:28 +0100)
Fix typo don't pass self in as a parameter, this evaluated to true
giving the wrong results meaning the machines typeahead did not return
valid results.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/orm/models.py

index 5aed158c12e3a8c5a65aab32f2d0d7bd6e0801b3..f5529e2541d4cdc3e07cbac89dca4c249287f7b2 100644 (file)
@@ -229,7 +229,7 @@ class Project(models.Model):
         """ Returns QuerySet of all Machines which are provided by the
         Layers currently added to the Project """
         queryset = Machine.objects.filter(
-            layer_version__in=self.get_project_layer_versions(self))
+            layer_version__in=self.get_project_layer_versions())
 
         return queryset