From e1bf839f80398d5bd5465cf5fa9463915f887c18 Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Wed, 21 Oct 2015 00:16:21 +0200 Subject: mogo: Stop using .new, continued. From dc7d02095fff, spotted by @federicobond too. See #219. --- factory/mogo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3