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
This commit is contained in:
Luke Plant 2006-01-31 22:02:20 +00:00
parent 5c3789c908
commit a37d862ded
1 changed files with 1 additions and 1 deletions

View File

@ -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 object>
>>> Article.objects.all()[1:2]
>>> Article.objects.all()[1:3]
[<Article object>, <Article object>]
>>> s3 = Article.objects.filter(id__exact=3)
>>> (s1 | s2 | s3)[::2]