django queryset filter fk not null code example Example: django is null MyModel.objects.filter(field__isnull = False)