Avoid crashing the frontpage when there are zero quotes
authorMagnus Hagander <magnus@hagander.net>
Thu, 15 Dec 2011 21:14:07 +0000 (22:14 +0100)
committerMagnus Hagander <magnus@hagander.net>
Thu, 15 Dec 2011 21:14:07 +0000 (22:14 +0100)
commit8042d5a8bc4cad04a47da129fc9387dcb1672a50
tree245e9f226d42633d3aba67e0ea46165b0edb1580
parenta7606c6e8cef766634ac153a63ef882396150fef
Avoid crashing the frontpage when there are zero quotes

This won't happen in production since we don't delete quotes, but it
happens on empty dev environments. It still renders a pretty ugly
frontpage, but it doesn't crash...
pgweb/core/views.py