Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed unit-test output error in m2m_and_m2o unit tests, due to a chan…

…ge in the model's __repr__ earlier today

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8ac9bb7ddf4896f26906dd8e17a62f22fa5eed41 1 parent cb9cb20
@adrianholovaty adrianholovaty authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/modeltests/m2m_and_m2o/models.py
View
12 tests/modeltests/m2m_and_m2o/models.py
@@ -47,20 +47,20 @@ class Meta:
>>> i3.cc.add(r)
>>> from django.db.models.query import Q
>>> Issue.objects.filter(client=r.id)
-[<Issue 1>, <Issue 2>]
+[<Issue: 1>, <Issue: 2>]
>>> Issue.objects.filter(client=g.id)
-[<Issue 3>]
+[<Issue: 3>]
>>> Issue.objects.filter(cc__id__exact=g.id)
[]
>>> Issue.objects.filter(cc__id__exact=r.id)
-[<Issue 2>, <Issue 3>]
+[<Issue: 2>, <Issue: 3>]
# 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 1>, <Issue 2>, <Issue 3>]
+[<Issue: 1>, <Issue: 2>, <Issue: 3>]
>>> Issue.objects.filter(cc__id__exact=r.id) | Issue.objects.filter(client=r.id)
-[<Issue 1>, <Issue 2>, <Issue 3>]
+[<Issue: 1>, <Issue: 2>, <Issue: 3>]
>>> Issue.objects.filter(Q(client=r.id) | Q(cc__id__exact=r.id))
-[<Issue 1>, <Issue 2>, <Issue 3>]
+[<Issue: 1>, <Issue: 2>, <Issue: 3>]
"""
Please sign in to comment.
Something went wrong with that request. Please try again.