mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
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.
This commit is contained in:
parent
1136aa5005
commit
f9936deed1
9 changed files with 38 additions and 10 deletions
|
@ -38,7 +38,8 @@ class JsonSerializerTestCase(SerializersTestBase, TestCase):
|
|||
%(first_category_pk)s,
|
||||
%(second_category_pk)s
|
||||
],
|
||||
"meta_data": []
|
||||
"meta_data": [],
|
||||
"topics": []
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue