ccnmtl/mvsim — pull request #2 by ejucovy (2012-01-31 01:14:43+00:00)
Title: optimize CourseSection admin view (fix issue #1)

See https://github.com/ccnmtl/mvsim/issues/1 -- this patch constrains the admin view's queryset to states with `game=NULL`. This should make the view at `/admin/main/coursesection/` usable: without the patch, the view inadvertently makes *N+1 separate database queries* where N is the number of turns played across all games by all users in all courses. With the patch, the system should make one database query.