Skip to content

Commit 84cfaf1

Browse files
committed
update serializer output for MongoAutoField
1 parent 13e5479 commit 84cfaf1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/m2m_through_regress/tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ def test_serialization(self):
8484
)
8585
self.assertJSONEqual(
8686
out.getvalue().strip(),
87-
'[{"pk": %(m_pk)s, "model": "m2m_through_regress.membership", '
88-
'"fields": {"person": %(p_pk)s, "price": 100, "group": %(g_pk)s}}, '
89-
'{"pk": %(p_pk)s, "model": "m2m_through_regress.person", '
87+
'[{"pk": "%(m_pk)s", "model": "m2m_through_regress.membership", '
88+
'"fields": {"person": "%(p_pk)s", "price": 100, "group": "%(g_pk)s"}}, '
89+
'{"pk": "%(p_pk)s", "model": "m2m_through_regress.person", '
9090
'"fields": {"name": "Bob"}}, '
91-
'{"pk": %(g_pk)s, "model": "m2m_through_regress.group", '
91+
'{"pk": "%(g_pk)s", "model": "m2m_through_regress.group", '
9292
'"fields": {"name": "Roll"}}]' % pks,
9393
)
9494

0 commit comments

Comments
 (0)