Skip to content

Commit

Permalink
Update docs/recipes.rst
Browse files Browse the repository at this point in the history
Co-authored-by: François Freitag <[email protected]>
  • Loading branch information
bagerard and francoisfreitag committed May 13, 2022
1 parent cd10bb9 commit 31e8a41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ simply use a :class:`factory.Iterator` on the chosen queryset:
language = factory.Iterator(models.Language.objects.all())
Here, ``models.Language.objects.all()`` is a QuerySet and will only hit the database
when factory_boy will start iterating on it, i.e on the first call to ``UserFactory``;
thus avoiding DB queries at import time.
Here, ``models.Language.objects.all()`` is a
:class:`~django.db.models.query.QuerySet` and will only hit the database when
``factory_boy`` starts iterating on it, i.e on the first call to
``UserFactory``; thus avoiding DB queries at import time.


Reverse dependencies (reverse ForeignKey)
Expand Down

0 comments on commit 31e8a41

Please sign in to comment.