1# According to documentation
2
3# Limiting QuerySets
4# This is the equivalent of SQL’s LIMIT and OFFSET clauses.
5
6# For example, this returns the first 5 objects (LIMIT 5):
7>>> Entry.objects.all()[:5]
8
9# This returns the sixth through tenth objects (OFFSET 5 LIMIT 5):
10>>> Entry.objects.all()[5:10]