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