From 242e652fe7c07b32af8a8c53f2998a8d732da9b5 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Fri, 3 Mar 2006 22:42:16 +0000 Subject: [PATCH] magic-removal: Improved clarity of a test (now possible due to ordering on model) git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2480 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/basic/models.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/modeltests/basic/models.py b/tests/modeltests/basic/models.py index b1618a73da..17b1f7b770 100644 --- a/tests/modeltests/basic/models.py +++ b/tests/modeltests/basic/models.py @@ -221,11 +221,9 @@ datetime.datetime(2005, 7, 28, 0, 0) # You can combine queries with & and |. >>> s1 = Article.objects.filter(id__exact=1) >>> s2 = Article.objects.filter(id__exact=2) ->>> tmp = [a.id for a in list(s1 | s2)] ->>> tmp.sort() ->>> tmp -[1L, 2L] ->>> list(s1 & s2) +>>> s1 | s2 +[Area woman programs in Python, Second article] +>>> s1 & s2 [] # You can get the number of objects like this: