summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polyconseil.fr>2011-05-13 16:40:15 +0200
committerRaphaël Barrois <raphael.barrois@polyconseil.fr>2011-05-13 16:40:15 +0200
commitf163c4a74ea726429046c090b72c6ff6c753edc8 (patch)
treeb8548cba58ef6bfcf962de47fbf0706b25d4f881 /README.rst
parentb0f29ff90509d2d018c41e05f387329fab978163 (diff)
downloadfactory-boy-f163c4a74ea726429046c090b72c6ff6c753edc8.tar
factory-boy-f163c4a74ea726429046c090b72c6ff6c753edc8.tar.gz
Improve README.
Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index e141b93..2c4b15d 100644
--- a/README.rst
+++ b/README.rst
@@ -171,7 +171,7 @@ Customizing creation
Sometimes, the default build/create by keyword arguments doesn't allow for enough
customization of the generated objects. In such cases, you should override the
-:meth:`base.Factory._prepare` method::
+Factory._prepare method::
class UserFactory(factory.Factory):
@classmethod
@@ -180,6 +180,6 @@ customization of the generated objects. In such cases, you should override the
user = super(UserFactory, cls)._prepare(create, kwargs)
if password:
user.set_password(user)
- if create:
- user.save()
+ if create:
+ user.save()
return user