mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.5.X] Fixed #20397 - Cleaned up issue with quotation marks in documentation
Backport of b9efc03e6d from master
This commit is contained in:
parent
18a2fb1907
commit
a9703edc61
@ -328,7 +328,7 @@ Use the ``reverse()`` method to reverse the order in which a queryset's
|
|||||||
elements are returned. Calling ``reverse()`` a second time restores the
|
elements are returned. Calling ``reverse()`` a second time restores the
|
||||||
ordering back to the normal direction.
|
ordering back to the normal direction.
|
||||||
|
|
||||||
To retrieve the ''last'' five items in a queryset, you could do this::
|
To retrieve the "last" five items in a queryset, you could do this::
|
||||||
|
|
||||||
my_queryset.reverse()[:5]
|
my_queryset.reverse()[:5]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user