diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-18 15:23:54 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-18 15:23:54 +0200 |
commit | 3d7a00d1c5cafe37e49a716c8ae075e984b3111a (patch) | |
tree | 4ca8f17d5b8b1b94fdcb99239c85ad07584ebb84 /README.rst | |
parent | ecde9a5c2f5d7ea230e68e6d0b3586e5956e55c0 (diff) | |
download | factory-boy-3d7a00d1c5cafe37e49a716c8ae075e984b3111a.tar factory-boy-3d7a00d1c5cafe37e49a716c8ae075e984b3111a.tar.gz |
Improve docs on create_batch (Closes #139).
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -155,6 +155,16 @@ No matter which strategy is used, it's possible to override the defined attribut "Joe" +It is also possible to create a bunch of objects in a single call: + +.. code-block:: pycon + + >>> users = USerFactory.build(10, first_name="Joe") + >>> len(users) + 10 + >>> [user.first_name for user in users] + ["Joe", "Joe", "Joe", "Joe", "Joe", "Joe", "Joe", "Joe", "Joe", "Joe"] + Lazy Attributes """"""""""""""" |