diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-18 15:10:56 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-18 15:10:56 +0200 |
commit | 3a5709527d362a960a1a35769375412e4536839e (patch) | |
tree | 0d16ff742914585556ccc55ef75cbec162f4a271 /tests/cyclic | |
parent | b245a83019a8735d0c80c07275cd426bc60dd9f8 (diff) | |
download | factory-boy-3a5709527d362a960a1a35769375412e4536839e.tar factory-boy-3a5709527d362a960a1a35769375412e4536839e.tar.gz |
Rename 'target' to 'model'.
Diffstat (limited to 'tests/cyclic')
-rw-r--r-- | tests/cyclic/bar.py | 2 | ||||
-rw-r--r-- | tests/cyclic/foo.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/cyclic/bar.py b/tests/cyclic/bar.py index 8674c4d..a5e6bf1 100644 --- a/tests/cyclic/bar.py +++ b/tests/cyclic/bar.py @@ -31,7 +31,7 @@ class Bar(object): class BarFactory(factory.Factory): class Meta: - target = Bar + model = Bar y = 13 foo = factory.SubFactory('cyclic.foo.FooFactory') diff --git a/tests/cyclic/foo.py b/tests/cyclic/foo.py index 5310b1e..18de362 100644 --- a/tests/cyclic/foo.py +++ b/tests/cyclic/foo.py @@ -33,7 +33,7 @@ class Foo(object): class FooFactory(factory.Factory): class Meta: - target = Foo + model = Foo x = 42 bar = factory.SubFactory(bar_mod.BarFactory) |