From 2e5046bda818771f474a1514465f71bd62be9dcd Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Wed, 25 Sep 2013 10:58:12 +0200 Subject: Fix Django sequences with abstract base models. --- factory/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'factory/base.py') 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() -- cgit v1.2.3