bitbake: toastergui: views Standardise the fields project layer response

We need to keep consistent the field names of these objects so that we
can use the object response from different calls. e.g. layer dependences
or listing layers in the project.

(Bitbake rev: 5c7004908f6916c0d279299c47b9dca3237148ec)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood authored and Richard Purdie committed 2015-08-06 16:04:46 -05:00
1 parent 951e40dd7d
commit 4d7944d6ad
1 file changed
+3 -2
+3 -2
View File
@@ -2224,9 +2224,10 @@ if True:
"id": x.layercommit.pk,
"orderid": x.pk,
"name" : x.layercommit.layer.name,
"giturl": x.layercommit.layer.vcs_url,
"vcs_url": x.layercommit.layer.vcs_url,
"vcs_reference" : x.layercommit.get_vcs_reference(),
"url": x.layercommit.layer.layer_index_url,
"layerdetailurl": reverse("layerdetails", args=(prj.id, x.layercommit.pk,)),
"layerdetailurl": x.layercommit.get_detailspage_url(prj.pk),
# This branch name is actually the release
"branch" : { "name" : x.layercommit.get_vcs_reference(), "layersource" : x.layercommit.up_branch.layer_source.name if x.layercommit.up_branch != None else None}},
prj.projectlayer_set.all().order_by("id")),