Merge pull request #1360 from Gallaecio/patch-1

Fix array-slicing documentation
This commit is contained in:
Jérôme Lafréchoux
2016-08-22 10:13:08 +02:00
committed by GitHub

View File

@@ -237,7 +237,7 @@ is preferred for achieving this::
# All except for the first 5 people # All except for the first 5 people
users = User.objects[5:] users = User.objects[5:]
# 5 users, starting from the 10th user found # 5 users, starting from the 11th user found
users = User.objects[10:15] users = User.objects[10:15]
You may also index the query to retrieve a single result. If an item at that You may also index the query to retrieve a single result. If an item at that