Django dynamic filter failure
问题 As a follow-up to this question, I'd like to pinpoint the actual error that was occurring. Am I doing something wrong, or is this a bug? f = {'groups__isnull': 'True'} students1 = models.Student.objects.filter( **f ) students2 = models.Student.objects.filter(groups__isnull=True) These two queries should be identical, but are not. For reference, my models: class Student (models.Model): user = models.ForeignKey(User, unique=True, null=False, related_name='student') teacher = models.ForeignKey