speed up dashboard queries by using select_related (fixes #233)