From 8aeeec0b35521e788ccdbe480b87155e4a15c4d5 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Tue, 31 Jan 2006 02:27:18 +0000 Subject: [PATCH] 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 --- tests/modeltests/ordering/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/modeltests/ordering/models.py b/tests/modeltests/ordering/models.py index 06bc515f7b..de08a75755 100644 --- a/tests/modeltests/ordering/models.py +++ b/tests/modeltests/ordering/models.py @@ -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]