Skip to content

Commit 31e8a41

Browse files
Update docs/recipes.rst
Co-authored-by: François Freitag <mail@franek.fr>
1 parent cd10bb9 commit 31e8a41

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/recipes.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ simply use a :class:`factory.Iterator` on the chosen queryset:
5252
5353
language = factory.Iterator(models.Language.objects.all())
5454
55-
Here, ``models.Language.objects.all()`` is a QuerySet and will only hit the database
56-
when factory_boy will start iterating on it, i.e on the first call to ``UserFactory``;
57-
thus avoiding DB queries at import time.
55+
Here, ``models.Language.objects.all()`` is a
56+
:class:`~django.db.models.query.QuerySet` and will only hit the database when
57+
``factory_boy`` starts iterating on it, i.e on the first call to
58+
``UserFactory``; thus avoiding DB queries at import time.
5859

5960

6061
Reverse dependencies (reverse ForeignKey)

0 commit comments

Comments
 (0)