aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--factory/mogo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/mogo.py b/factory/mogo.py
index b5841b1..aa9f28b 100644
--- a/factory/mogo.py
+++ b/factory/mogo.py
@@ -41,6 +41,6 @@ class MogoFactory(base.Factory):
@classmethod
def _create(cls, model_class, *args, **kwargs):
- instance = model_class.new(*args, **kwargs)
+ instance = model_class(*args, **kwargs)
instance.save()
return instance