diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-03-24 15:08:04 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-25 11:17:34 +0000 |
commit | 478f1b7afe46c0d6328d4b8db1d32e22aef6759d (patch) | |
tree | 796bcfcfd1290edba2d186c12e9f05af4878e10f /bitbake/lib/toaster/toastergui/templates | |
parent | 70f1a3db5e102cff658e51007e0cac5207f197bb (diff) | |
download | poky-478f1b7afe46c0d6328d4b8db1d32e22aef6759d.tar.gz |
bitbake: toaster: replace package dependency tag w/ view queries
This patch moves the queries for package dependencies from the
project tags to the views. This is done to bring the code inline
with the Django philosophy of making all data queries in views.py
This change has no performance implication.
(Bitbake rev: 9dd53bd4355148916a89cf672b6c5db5f6b1ae35)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/target.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/target.html b/bitbake/lib/toaster/toastergui/templates/target.html index 45128986e1..5396b17dc9 100644 --- a/bitbake/lib/toaster/toastergui/templates/target.html +++ b/bitbake/lib/toaster/toastergui/templates/target.html | |||
@@ -79,7 +79,7 @@ | |||
79 | {{package.license}} | 79 | {{package.license}} |
80 | </td> | 80 | </td> |
81 | <td class="depends"> | 81 | <td class="depends"> |
82 | {% with deps=package|runtime_dependencies:target.id %} | 82 | {% with deps=package.runtime_dependencies %} |
83 | {% with deps_count=deps|length %} | 83 | {% with deps_count=deps|length %} |
84 | {% if deps_count > 0 %} | 84 | {% if deps_count > 0 %} |
85 | <a class="btn" | 85 | <a class="btn" |
@@ -96,7 +96,7 @@ | |||
96 | {% endwith %} | 96 | {% endwith %} |
97 | </td> | 97 | </td> |
98 | <td class="brought_in_by"> | 98 | <td class="brought_in_by"> |
99 | {% with rdeps=package|reverse_runtime_dependencies:target.id %} | 99 | {% with rdeps=package.reverse_runtime_dependencies %} |
100 | {% with rdeps_count=rdeps|length %} | 100 | {% with rdeps_count=rdeps|length %} |
101 | {% if rdeps_count > 0 %} | 101 | {% if rdeps_count > 0 %} |
102 | <a class="btn" | 102 | <a class="btn" |