diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-05-03 01:15:21 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-05-03 01:15:21 +0200 |
commit | 2c8d2cd5c9bf3074bd70559a850d77bd3a28ae8d (patch) | |
tree | 4ffd3f7b25661e0fb36fc0fc41fb58def584f8c3 /factory | |
parent | 56a5db608f457259f7e69a5e01225adaf7016a31 (diff) | |
download | factory-boy-2c8d2cd5c9bf3074bd70559a850d77bd3a28ae8d.tar factory-boy-2c8d2cd5c9bf3074bd70559a850d77bd3a28ae8d.tar.gz |
Add LazyStub.factory_parent (See #55).
Diffstat (limited to 'factory')
-rw-r--r-- | factory/containers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/factory/containers.py b/factory/containers.py index ee2ad82..b3b003e 100644 --- a/factory/containers.py +++ b/factory/containers.py @@ -55,6 +55,7 @@ class LazyStub(object): self.__pending = [] self.__containers = containers self.__target_class = target_class + self.factory_parent = containers[0] if containers else None self.__initialized = True def __repr__(self): |