]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: don't use mru.count in the template
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 30 May 2016 13:04:46 +0000 (16:04 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Jun 2016 14:28:23 +0000 (15:28 +0100)
commitc3ff90c9f028bff5733ebac7b5e72a4688addd3e
tree5baf46378da56f07bf7f7dbba690d9293148d2f6
parent0c38441ed99b49dae8ef9613e320f0760853d6aa
toaster: don't use mru.count in the template

mru is a list. It has a count method, but it differs from the
one for the queryset. Using mru.count causes 'Latest project builds'
section to silently disappear when toaster runs on python 3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/toastergui/templates/mrb_section.html