diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-06-15 15:09:38 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-06-15 15:09:38 +0200 |
commit | 94d7defa820b69152fb5aeadb3f5ccc3611158fa (patch) | |
tree | 7ed2495d87a35eb866ec7e76eea69dbb3f391363 /factory/base.py | |
parent | ae84379f86a0216685ce1886cd36ec6a550ab231 (diff) | |
download | factory-boy-94d7defa820b69152fb5aeadb3f5ccc3611158fa.tar factory-boy-94d7defa820b69152fb5aeadb3f5ccc3611158fa.tar.gz |
Cleanup PostGenerationDeclaration extraction context.
Diffstat (limited to 'factory/base.py')
-rw-r--r-- | factory/base.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/factory/base.py b/factory/base.py index 76d3d4a..0429231 100644 --- a/factory/base.py +++ b/factory/base.py @@ -380,9 +380,8 @@ class BaseFactory(object): # Handle post-generation attributes results = {} for name, decl in sorted(postgen_declarations.items()): - did_extract, extracted, extracted_kwargs = postgen_attributes[name] - results[name] = decl.call(obj, create, extracted, - factory_extracted=did_extract, **extracted_kwargs) + extraction_context = postgen_attributes[name] + results[name] = decl.call(obj, create, extraction_context) cls._after_postgeneration(obj, create, results) |