Valentin Volkov
Results
1
comments of
Valentin Volkov
I get around this problem like this: ```python class MyFactory(factory.django.DjangoModelFactory): class Meta: model = MyModel sub_factory_field = factory.SubFactory("MySubFactory") class Params: create_related = factory.Trait(sub_factory_field=factory.LazyFunction(MySubFactory.create)) ``` So, you can pass `create_related` tо...