Skip to content

Commit cb44163

Browse files
committed
Review feedback
1 parent c7d8b92 commit cb44163

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/tutorials/working-with-blocks.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ We have:
156156

157157
The ``Meta.model`` declaration is essential: wagtail-factories needs this to create values of the correct type. It should be the relevant block class.
158158

159-
In this example, we're using the API exposed by ``factory.Faker``. This helps us to generate reasonable-looking defaults for fields we don't specify explicit values for when creating block instances.
159+
In the next example, we're using the API exposed by ``factory.Faker``. This helps us to generate reasonable-looking defaults for fields we don't specify explicit values for when creating block instances.
160160

161161
.. code:: python
162162
@@ -315,8 +315,8 @@ We can also use double-underscores to traverse the block definition tree, and sp
315315

316316
.. code:: python
317317
318-
with_image = f.PetStoryBlockFactory(**{"0__image__decorative": True})
319-
with_image[0].value.decorative
318+
block_with_image = f.PetStoryBlockFactory(**{"0__image__decorative": True})
319+
block_with_image[0].value.decorative
320320
321321
::
322322

@@ -333,15 +333,15 @@ To specify multiple values for a particular nested block, we can add declaration
333333

334334
.. code:: python
335335
336-
with_image = f.PetStoryBlockFactory(
336+
block_with_image = f.PetStoryBlockFactory(
337337
**{
338338
"0__image__decorative": False,
339339
"0__image__alt_text": "An orange cat lying in the sun",
340340
"0__image__image__image__file__color": "orange",
341341
}
342342
)
343343
344-
with_image[0].value.decorative, with_image[0].value.contextual_alt_text
344+
block_with_image[0].value.decorative, with_image[0].value.contextual_alt_text
345345
346346
::
347347

0 commit comments

Comments
 (0)