diff options
author | Raphaël Barrois <raphael.barrois@polyconseil.fr> | 2011-05-13 16:40:15 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polyconseil.fr> | 2011-05-13 16:40:15 +0200 |
commit | f163c4a74ea726429046c090b72c6ff6c753edc8 (patch) | |
tree | b8548cba58ef6bfcf962de47fbf0706b25d4f881 /README.rst | |
parent | b0f29ff90509d2d018c41e05f387329fab978163 (diff) | |
download | factory-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.rst | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |