Django: Query self referencing objects with no child elements,Category.objects.filter(category__isnull=True)