Skip to content

Commit 49626c3

Browse files
author
Ross Mechanic
authored
Fix doc error (#647)
1 parent 73a4e0e commit 49626c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/querying_history.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,6 @@ To filter changes to the data, a relationship to the history can be established.
166166
You can also prefetch the objects with this relationship using somthing like this for example to prefetch order by history_date descending:
167167

168168
.. code-block:: python
169+
169170
Poll.objects.filter(something).prefetch_related(Prefetch('history', queryset=Poll.history.order_by('-history_date'),
170171
to_attr='ordered_histories')

0 commit comments

Comments
 (0)