diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-10-21 00:16:21 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-10-21 00:17:12 +0200 |
commit | e1bf839f80398d5bd5465cf5fa9463915f887c18 (patch) | |
tree | 965d1180771e5e76b7b8a8e6cb7ce891b864155d | |
parent | 5ae2055fe474fbd2a5c5b5a92515bc0affcf9e9c (diff) | |
download | factory-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.py | 2 |
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 |