1
0
mirror of https://github.com/django/django.git synced 2025-04-14 20:34:36 +00:00

magic-removal: Fixed an incorrect model test in 'ordering', and updated comments too.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant 2006-01-31 02:27:18 +00:00
parent 758f1366c2
commit 8aeeec0b35

View File

@ -48,11 +48,11 @@ API_TESTS = """
>>> Article.objects.order_by('pub_date', '-headline')
[Article 1, Article 3, Article 2, Article 4]
# Use the "limit" parameter to limit the results.
>>> Article.objects.order_by('headline')[:3]
# Use the 'stop' part of slicing notation to limit the results.
>>> Article.objects.order_by('headline')[:2]
[Article 1, Article 2]
# Use the "offset" parameter with "limit" to offset the result list.
# Use the 'stop' and 'start' parts of slicing notation to offset the result list.
>>> Article.objects.order_by('headline')[1:3]
[Article 2, Article 3]