From a37d862dedd0c042d29ae1c3fa29cb660cd52760 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Tue, 31 Jan 2006 22:02:20 +0000 Subject: [PATCH] magic-removal: fixed an out-by-one error in the 'basic' model tests git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2206 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/basic/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modeltests/basic/models.py b/tests/modeltests/basic/models.py index 79cd5fd52f..b89e186163 100644 --- a/tests/modeltests/basic/models.py +++ b/tests/modeltests/basic/models.py @@ -235,7 +235,7 @@ datetime.datetime(2005, 7, 28, 0, 0) # You can get items using index and slice notation. >>> Article.objects.all()[0]
->>> Article.objects.all()[1:2] +>>> Article.objects.all()[1:3] [
,
] >>> s3 = Article.objects.filter(id__exact=3) >>> (s1 | s2 | s3)[::2]