Change fallbacksqueryset to use a self join instead of multiple queries on django 1.6+