summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2012-01-02 17:05:42 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2012-01-02 17:05:42 +0100
commit5620221c13398a09cbf2ded1b22ac8304f3f5c27 (patch)
tree35a3ab5afd37763a7c4a8d5ee9e9ff91439ace59 /README.rst
parent41ad5d00acdffaf9c7c59cc3cd7c0dd19c2c7600 (diff)
downloadfactory-boy-5620221c13398a09cbf2ded1b22ac8304f3f5c27.tar
factory-boy-5620221c13398a09cbf2ded1b22ac8304f3f5c27.tar.gz
Fix kwargs syntax in README custom creation section.
Thanks to 'Lispython' (https://github.com/Lispython) for finding the mistake. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index dba0dbe..7cd80f6 100644
--- a/README.rst
+++ b/README.rst
@@ -187,7 +187,7 @@ Factory._prepare method::
@classmethod
def _prepare(cls, create, **kwargs):
password = kwargs.pop('password', None)
- user = super(UserFactory, cls)._prepare(create, kwargs)
+ user = super(UserFactory, cls)._prepare(create, **kwargs)
if password:
user.set_password(user)
if create: