1
0
mirror of https://github.com/django/django.git synced 2025-10-30 00:56:09 +00:00

[4.2.x] Fixed #34620 -- Fixed serialization crash on m2m fields without natural keys when base querysets use select_related().

Regression in 19e0587ee5.

Thanks Martin Svoboda for the report.
Backport of f9936deed1 from main
This commit is contained in:
Mariusz Felisiak
2023-06-04 20:49:07 +02:00
parent 66d9fa4371
commit 87a4cd559b
9 changed files with 38 additions and 10 deletions

View File

@@ -27,7 +27,8 @@ class JsonlSerializerTestCase(SerializersTestBase, TestCase):
'"headline": "Poker has no place on ESPN",'
'"pub_date": "2006-06-16T11:00:00",'
'"categories": [%(first_category_pk)s,%(second_category_pk)s],'
'"meta_data": []}}\n'
'"meta_data": [],'
'"topics": []}}\n'
)
@staticmethod