We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a4e0e commit 49626c3Copy full SHA for 49626c3
docs/querying_history.rst
@@ -166,5 +166,6 @@ To filter changes to the data, a relationship to the history can be established.
166
You can also prefetch the objects with this relationship using somthing like this for example to prefetch order by history_date descending:
167
168
.. code-block:: python
169
+
170
Poll.objects.filter(something).prefetch_related(Prefetch('history', queryset=Poll.history.order_by('-history_date'),
171
to_attr='ordered_histories')
0 commit comments