From 05201e7d0c4109f3f6d439c40f37b1649e4944ac Mon Sep 17 00:00:00 2001 From: Maxime <12089026+mcbloch@users.noreply.github.com> Date: Mon, 1 Mar 2021 12:33:30 +0100 Subject: [PATCH] Add SKIP to readme docs --- README.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rst b/README.rst index 6f60ff0d..f033f4d4 100644 --- a/README.rst +++ b/README.rst @@ -108,6 +108,9 @@ Quick example: # Generate SomeModel from SomeApp and force a value of money field from default to random some = mixer.blend('someapp.somemodel', money=mixer.RANDOM) + + # Generate SomeModel from SomeApp and skip the generation of money field + some = mixer.blend('someapp.somemodel', money=mixer.SKIP) # Generate 5 SomeModel's instances and take company field's values from custom generator some_models = mixer.cycle(5).blend('somemodel', company=(name for name in company_names)) @@ -138,6 +141,9 @@ Quick example: # Generate SomeModel from SomeApp and force a value of money field from default to random some = mixer.blend('project.models.SomeModel', money=mixer.RANDOM) + + # Generate SomeModel from SomeApp and skip the generation of money field + some = mixer.blend('project.models.SomeModel', money=mixer.SKIP) # Generate 5 SomeModel's instances and take company field's values from custom generator some_models = mixer.cycle(5).blend('project.models.SomeModel', company=(company for company in companies))