diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-09-25 10:58:12 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-09-25 10:58:12 +0200 |
commit | 2e5046bda818771f474a1514465f71bd62be9dcd (patch) | |
tree | ade9d0c6f02fbc4dfbe066b41c6765c215a68f81 /factory/base.py | |
parent | ea00fa30273c7355c02a361c1193ea4764528edb (diff) | |
download | factory-boy-2e5046bda818771f474a1514465f71bd62be9dcd.tar factory-boy-2e5046bda818771f474a1514465f71bd62be9dcd.tar.gz |
Fix Django sequences with abstract base models.
Diffstat (limited to 'factory/base.py')
-rw-r--r-- | factory/base.py | 2 |
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() |