Fixed GenericReferenceField query issue

This commit is contained in:
Harry Marr
2010-10-17 13:55:48 +01:00
parent d3c2dfbaee
commit 3591593ac7
3 changed files with 1 additions and 5 deletions

View File

@@ -545,7 +545,6 @@ class FieldTest(unittest.TestCase):
user.save()
user = User.objects(bookmarks__all=[post_1, link_1]).first()
print User.objects(bookmarks__all=[post_1, link_1]).explain()
self.assertEqual(user.bookmarks[0], post_1)
self.assertEqual(user.bookmarks[1], link_1)