~dooferlad/patchwork/niceties

Viewing all changes in revision 277.

  • Committer: Jeremy Kerr
  • Date: 2012-06-17 08:10:12 UTC
  • Revision ID: git-v1:7a79c1a2e4b2ceaf2668fa671f2db98c0de7b724
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: