]> git.ozlabs.org Git - patchwork/commit
[views] Fix empty bundle showing entire project's patches
authorJeremy Kerr <jk@ozlabs.org>
Sat, 20 Sep 2008 05:31:32 +0000 (15:31 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Sat, 20 Sep 2008 05:31:32 +0000 (15:31 +1000)
commitdff684304a35c14e23d89783d18e1664222b3fcb
treef9bf739725ab6d9d8f2a30ff61d138cbcedc3e89
parentf26f929de02369cf73fc8ab54fff3a046855dd9f
[views] Fix empty bundle showing entire project's patches

If a bundle is empty, we end up triggering the 'if not patches' check
in generic_list(), which repopulates the patch list with the current
project's patches.

So, check for None instead, and leave the patch list empty.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/views/__init__.py