aboutsummaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorSamuel Paccoud <samuel@sampaccoud.com>2016-04-03 09:42:40 +0200
committerSamuel Paccoud <samuel@sampaccoud.com>2016-04-03 09:42:40 +0200
commit5836329889ac45034978c69b6a6f7de4b0b5b75d (patch)
tree3407a1e904bca49d599aff799c9d161d5b29eb2a /factory
parentc22729d03d291814ae196ce7652954db9e42ed97 (diff)
downloadfactory-boy-5836329889ac45034978c69b6a6f7de4b0b5b75d.tar
factory-boy-5836329889ac45034978c69b6a6f7de4b0b5b75d.tar.gz
Add documentation and test for subfactory using "factory_parent" attribute
Add documentation on how to use a LazyAttribute in a SubFactory and poke the "factory_parent" attribute to indirectly derive the value of a field on the child factory from a field on the parent factory. This commit adds an example to recipes that explains how it can be done. It also adds a test to make sure that this feature continues to work as is now described in the documentation.
Diffstat (limited to 'factory')
0 files changed, 0 insertions, 0 deletions