Closed vishes-shell closed 3 years ago
Can we eliminate redundant UPDATE on ddf.G()?
UPDATE
ddf.G()
Simple order of ddf.G() is:
DynamicFixture.get()
DynamicFixture._save_the_instance()
Model.save()
INSERT
Can we somehow remove step 4. by passing force_insert=True into Model.save() method? And if not, why?
force_insert=True
I believe we can supply library with options to achieve that:
DDF_FORCE_INSERT
False
force_insert=False
teach
force_insert
I believe there is no value since in django 3.2 it works as desired.
Can we eliminate redundant
UPDATE
onddf.G()
?Simple order of
ddf.G()
is:DynamicFixture.get()
DynamicFixture._save_the_instance()
Model.save()
UPDATE
INSERT
Can we somehow remove step 4. by passing
force_insert=True
intoModel.save()
method? And if not, why?I believe we can supply library with options to achieve that:
DDF_FORCE_INSERT
setting (withFalse
by default)force_insert=False
kwargs forDynamicFixture.get()
teach
withforce_insert