Fix query counting tests for django 1.6.

I'll have a brief look at the other failing tests but no promises `;)`.