From 8ac9bb7ddf4896f26906dd8e17a62f22fa5eed41 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 1 Jun 2006 04:30:39 +0000 Subject: [PATCH] Fixed unit-test output error in m2m_and_m2o unit tests, due to a change in the model's __repr__ earlier today git-svn-id: http://code.djangoproject.com/svn/django/trunk@3041 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/m2m_and_m2o/models.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/modeltests/m2m_and_m2o/models.py b/tests/modeltests/m2m_and_m2o/models.py index d147644c3c..7a685ecbd2 100644 --- a/tests/modeltests/m2m_and_m2o/models.py +++ b/tests/modeltests/m2m_and_m2o/models.py @@ -47,20 +47,20 @@ API_TESTS = """ >>> i3.cc.add(r) >>> from django.db.models.query import Q >>> Issue.objects.filter(client=r.id) -[, ] +[, ] >>> Issue.objects.filter(client=g.id) -[] +[] >>> Issue.objects.filter(cc__id__exact=g.id) [] >>> Issue.objects.filter(cc__id__exact=r.id) -[, ] +[, ] # Queries that combine results from the m2m and the m2o relationship. # 3 ways of saying the same thing: >>> Issue.objects.filter(Q(cc__id__exact=r.id) | Q(client=r.id)) -[, , ] +[, , ] >>> Issue.objects.filter(cc__id__exact=r.id) | Issue.objects.filter(client=r.id) -[, , ] +[, , ] >>> Issue.objects.filter(Q(client=r.id) | Q(cc__id__exact=r.id)) -[, , ] +[, , ] """