diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2012-06-17 16:06:37 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2012-06-17 16:10:12 +0800 |
commit | 7a79c1a2e4b2ceaf2668fa671f2db98c0de7b724 (patch) | |
tree | cebb809dc635b7276087553f2d18a135b47b31ff /apps/patchwork/bin/pwclient | |
parent | 016c66b8eb294314235c0df004c20c88bf5ead64 (diff) | |
download | patchwork-7a79c1a2e4b2ceaf2668fa671f2db98c0de7b724.tar.bz2 patchwork-7a79c1a2e4b2ceaf2668fa671f2db98c0de7b724.tar.xz |
templates: Don't rely on bool(Page)
The behaviour of bool(Page) changed in django 1.4 - it no longer
evaluates to False when page has no objects.
When checking for an empty patch list, use page.paginator.count.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/bin/pwclient')
0 files changed, 0 insertions, 0 deletions