[Django]-How can the value of a SubFactory be set when creating a Factory object

4👍

According to documentation, you can define SubFactory fields right in the external factory definition:

factories.MyFactory(user__name="John")

Hope that helps.

👤alecxe

Leave a comment