From f163c4a74ea726429046c090b72c6ff6c753edc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Fri, 13 May 2011 16:40:15 +0200 Subject: Improve README. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaƫl Barrois --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.rst') 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 -- cgit v1.2.3