After upgrading from 2.0.0 to 3.0.0 (and it is still valid for 3.1.2) I face the following problem when running tests - even though I specify fill_nullable_fields=True in G, I get None for the corresponding ForeignKey field.
I also tried to set DDF_FILL_NULLABLE_FIELDS=True in my settings, but it didn't help either.
My model:
class Plan(models.Model):
permissions = models.ForeignKey(Permissions, null=True, on_delete=models.SET_NULL)
After upgrading from
2.0.0
to3.0.0
(and it is still valid for3.1.2
) I face the following problem when running tests - even though I specifyfill_nullable_fields=True
inG
, I getNone
for the corresponding ForeignKey field. I also tried to setDDF_FILL_NULLABLE_FIELDS=True
in my settings, but it didn't help either.My model:
My test:
And error is
AssertionError: unexpectedly None