mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #35426 -- Updated querysets to be a required argument of GenericPrefetch.
This commit is contained in:
parent
32d163e680
commit
9a27c76021
4 changed files with 13 additions and 2 deletions
|
@ -603,7 +603,7 @@ information.
|
|||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
.. class:: GenericPrefetch(lookup, querysets=None, to_attr=None)
|
||||
.. class:: GenericPrefetch(lookup, querysets, to_attr=None)
|
||||
|
||||
This lookup is similar to ``Prefetch()`` and it should only be used on
|
||||
``GenericForeignKey``. The ``querysets`` argument accepts a list of querysets,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue