aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2015-10-21 00:16:21 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2015-10-21 00:17:12 +0200
commite1bf839f80398d5bd5465cf5fa9463915f887c18 (patch)
tree965d1180771e5e76b7b8a8e6cb7ce891b864155d
parent5ae2055fe474fbd2a5c5b5a92515bc0affcf9e9c (diff)
downloadfactory-boy-e1bf839f80398d5bd5465cf5fa9463915f887c18.tar
factory-boy-e1bf839f80398d5bd5465cf5fa9463915f887c18.tar.gz
mogo: Stop using .new, continued.
From dc7d02095fff, spotted by @federicobond too. See #219.
-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