From 3d7a00d1c5cafe37e49a716c8ae075e984b3111a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Sun, 18 May 2014 15:23:54 +0200 Subject: Improve docs on create_batch (Closes #139). --- README.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README.rst') diff --git a/README.rst b/README.rst index b4ba689..0ba4a86 100644 --- a/README.rst +++ b/README.rst @@ -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 """"""""""""""" -- cgit v1.2.3