aboutsummaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-09-25 10:58:12 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-09-25 10:58:12 +0200
commit2e5046bda818771f474a1514465f71bd62be9dcd (patch)
treeade9d0c6f02fbc4dfbe066b41c6765c215a68f81 /factory
parentea00fa30273c7355c02a361c1193ea4764528edb (diff)
downloadfactory-boy-2e5046bda818771f474a1514465f71bd62be9dcd.tar
factory-boy-2e5046bda818771f474a1514465f71bd62be9dcd.tar.gz
Fix Django sequences with abstract base models.
Diffstat (limited to 'factory')
-rw-r--r--factory/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/base.py b/factory/base.py
index 462a60c..8183649 100644
--- a/factory/base.py
+++ b/factory/base.py
@@ -328,7 +328,7 @@ class BaseFactory(object):
"""
# Rely upon our parents
- if cls._base_factory:
+ if cls._base_factory and not cls._base_factory._abstract_factory:
logger.debug("%r: reusing sequence from %r", cls, cls._base_factory)
return cls._base_factory._generate_next_sequence()