Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C191AE0112C; Thu, 8 Oct 2015 11:32:47 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.182 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C76BDE006F1 for ; Thu, 8 Oct 2015 11:32:43 -0700 (PDT) Received: by wicgb1 with SMTP id gb1so37808114wic.1 for ; Thu, 08 Oct 2015 11:32:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vAqLesnI1U7qiHGdODibmYwPRDhjw/lIcOSAgcdQ6i0=; b=UHQsTQkO8EhGQ4rluIHvvAiu/gpd+fqtqlrlAEev4qeGFRW+D29A19ey5mROSbVCD1 yUoPrI2TEn+LH4dy2HytjvX3b8iY1+ixnc08F6wyGb3yqmd2TDArnvPJt356ZJjwZT1I VZrXvIsaoRazEXUlGx9MCbE5/WQ/iur069sYTGt7bDuqLVUnY5ODCoNDrykLVerQaGb7 5QtnwhN+aRjc/p0EqXxCcub+WmTBj8ftzUWdhg/2hV0QSIZRFZ8hhSC7vGMRlD+pQryd SP/Tr9l+294TsMBlzSM8bO1UAwdgK51RUFT4GHL727Uv/vS6bwVJwQFWj+n3pDUUKz28 HAtA== X-Gm-Message-State: ALoCoQkRxoRQ6HLEhQw0yVvh94YzzoEVD9i0h81FvjpUKSFxLlgvuZJCgxxEWcKisJUjPAoHy/a2 X-Received: by 10.180.76.177 with SMTP id l17mr5926241wiw.16.1444329162291; Thu, 08 Oct 2015 11:32:42 -0700 (PDT) Received: from dorado.Home ([2.218.205.118]) by smtp.gmail.com with ESMTPSA id x9sm47729394wjf.44.2015.10.08.11.32.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Oct 2015 11:32:41 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 8 Oct 2015 19:32:34 +0100 Message-Id: <1444329157-11590-3-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444329157-11590-1-git-send-email-michael.g.wood@intel.com> References: <1444329157-11590-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 2/5] toaster: Fix typo in returning pk list of layer versions in current project X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2015 18:32:47 -0000 This was accidentally returning the primary key of the ProjectLayer rather than the ProjectLayer.Layer_Version.pk Signed-off-by: Michael Wood --- bitbake/lib/toaster/orm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 375985e..1cbf480 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -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): -- 2.1.4