summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-05-03 01:15:21 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-05-03 01:15:21 +0200
commit2c8d2cd5c9bf3074bd70559a850d77bd3a28ae8d (patch)
tree4ffd3f7b25661e0fb36fc0fc41fb58def584f8c3 /factory
parent56a5db608f457259f7e69a5e01225adaf7016a31 (diff)
downloadfactory-boy-2c8d2cd5c9bf3074bd70559a850d77bd3a28ae8d.tar
factory-boy-2c8d2cd5c9bf3074bd70559a850d77bd3a28ae8d.tar.gz
Add LazyStub.factory_parent (See #55).
Diffstat (limited to 'factory')
-rw-r--r--factory/containers.py1
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):