swisscom/cleanerversion — pull request #31 by maennel (2014-11-19 10:18:19+00:00)
Title: Select related tested

Fixed the still failing query time propagation.

Conditional statements in JOINs were added with wrong aliases in the case data was prefetched. This is done when using the 'select_related' method on a Django QuerySet.
The result was a wrong set of results returned from the DB (since the SQL statement was wrong, obviously).