diff options
Diffstat (limited to 'docs/examples.rst')
-rw-r--r-- | docs/examples.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples.rst b/docs/examples.rst index 52a5ef6..a57080e 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -57,7 +57,7 @@ And now, we'll define the related factories: class AccountFactory(factory.Factory): class Meta: - target = objects.Account + model = objects.Account username = factory.Sequence(lambda n: 'john%s' % n) email = factory.LazyAttribute(lambda o: '%s@example.org' % o.username) @@ -65,7 +65,7 @@ And now, we'll define the related factories: class ProfileFactory(factory.Factory): class Meta: - target = objects.Profile + model = objects.Profile account = factory.SubFactory(AccountFactory) gender = factory.Iterator([objects.Profile.GENDER_MALE, objects.Profile.GENDER_FEMALE]) |