TheBB/aligulac — pull request #118 by Prillan (2013-12-31 13:48:35+00:00)
Title: Expensive event bug.

Fixes a problem where some events caused a very expensive SQL query that can take up to 25 seconds. This uses `prefetch_related` instead of `select_related` which splits the big query with multiple joins into several smaller ones.