summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--factory/base.py2
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