diff options
-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 a18c73b..e5729de 100644 --- a/factory/base.py +++ b/factory/base.py @@ -194,7 +194,7 @@ class BaseFactory(object): @classmethod def stub(cls, **kwargs): stub_object = StubObject() - for name, value in cls.attributes(**kwargs).iteritems(): + for name, value in cls.attributes(create=False, extra=kwargs).iteritems(): setattr(stub_object, name, value) return stub_object |