summaryrefslogtreecommitdiff
path: root/factory/containers.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polyconseil.fr>2011-05-24 09:58:16 +0200
committerRaphaël Barrois <raphael.barrois@polyconseil.fr>2011-05-24 09:58:16 +0200
commitcb66c88859d8de161561ae42c9eccd8af56440c8 (patch)
treea9c37f4ad39c661b5f698f08080fb64adda41e44 /factory/containers.py
parente42516b995053d0d5f8d4d13a94cea4953ea1850 (diff)
downloadfactory-boy-cb66c88859d8de161561ae42c9eccd8af56440c8.tar
factory-boy-cb66c88859d8de161561ae42c9eccd8af56440c8.tar.gz
Fix the SubFactory/Sequence behaviour.
Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
Diffstat (limited to 'factory/containers.py')
-rw-r--r--factory/containers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/factory/containers.py b/factory/containers.py
index 8aa9955..be61641 100644
--- a/factory/containers.py
+++ b/factory/containers.py
@@ -139,6 +139,8 @@ class DeclarationsHolder(object):
if not extra:
extra = {}
+ factory.sequence = factory._generate_next_sequence()
+
attributes = {}
sub_fields = {}
for key in list(extra.keys()):