azavea/Open-Data-Catalog — pull request #34 by johndavidback (2013-09-13 22:20:49+00:00)
Title: Fixing an IndexError and a queryset count() issue

If there are no current votes, votes[0] throws an IndexError, and .count always returns something, but .count() may return 0.