4👍
✅
According to documentation, you can define SubFactory
fields right in the external factory definition:
factories.MyFactory(user__name="John")
Hope that helps.
Source:stackexchange.com