toaster: fix orm machine typo
cover toaster: fix orm machine typo
this fixes a type that was preventing the machine typeahead search from working.
-b
The following changes since commit b0833604e6b67c93abee7eb8a791c1ea298f4da9:
toaster: Rationalise mimetype guessing to fix artifact downloads (2015-10-06 19:58:53 -0700)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib bavery/submit/michaelw/2015-09-29_orm_machines
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/submit/michaelw/2015-09-29_orm_machines
Michael Wood (1):
toaster: orm Machines filter don't pass self in as parameter
lib/toaster/orm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--
1.9.1
PATCH 1/1 toaster: orm Machines filter don't pass self in as parameter
From: Michael Wood <[email protected]>
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.
--- lib/toaster/orm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/toaster/orm/models.py +1 -1
@@ -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
Signature · 1 line
1.9.1