mirror of
https://github.com/django/django.git
synced 2025-10-29 16:46:11 +00:00
[4.2.x] Fixed #34620 -- Fixed serialization crash on m2m fields without natural keys when base querysets use select_related().
Regression in19e0587ee5. Thanks Martin Svoboda for the report. Backport off9936deed1from main
This commit is contained in:
@@ -38,7 +38,8 @@ class JsonSerializerTestCase(SerializersTestBase, TestCase):
|
||||
%(first_category_pk)s,
|
||||
%(second_category_pk)s
|
||||
],
|
||||
"meta_data": []
|
||||
"meta_data": [],
|
||||
"topics": []
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user