summaryrefslogtreecommitdiff
path: root/factory/mogo.py
diff options
context:
space:
mode:
Diffstat (limited to 'factory/mogo.py')
-rw-r--r--factory/mogo.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/factory/mogo.py b/factory/mogo.py
index 0214119..5541043 100644
--- a/factory/mogo.py
+++ b/factory/mogo.py
@@ -36,11 +36,11 @@ class MogoFactory(base.Factory):
abstract = True
@classmethod
- def _build(cls, target_class, *args, **kwargs):
- return target_class.new(*args, **kwargs)
+ def _build(cls, model_class, *args, **kwargs):
+ return model_class.new(*args, **kwargs)
@classmethod
- def _create(cls, target_class, *args, **kwargs):
- instance = target_class.new(*args, **kwargs)
+ def _create(cls, model_class, *args, **kwargs):
+ instance = model_class.new(*args, **kwargs)
instance.save()
return instance