我有疑问:
users_to_exclude = MyModel.objects.filter(status=1)
现在:
result = MyAnotherModel.objects.filter(image=my_image).count()
和:
result = MyAnotherModel.objects.filter(image=my_image).exclude(user__in=users_to_exclude).count()
向我显示相同的数字(users_to_exclude
有正确的数据)。如何做好?