mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
@@ -26,6 +26,7 @@ class XmlSerializerTestCase(SerializersTestBase, TestCase):
|
||||
<field name="pub_date" type="DateTimeField">2006-06-16T11:00:00</field>
|
||||
<field name="categories" rel="ManyToManyRel" to="serializers.category"><object pk="%(first_category_pk)s"></object><object pk="%(second_category_pk)s"></object></field>
|
||||
<field name="meta_data" rel="ManyToManyRel" to="serializers.categorymetadata"></field>
|
||||
<field name="topics" rel="ManyToManyRel" to="serializers.topic"></field>
|
||||
</object>
|
||||
</django-objects>""" # NOQA
|
||||
|
||||
|
||||
Reference in New Issue
Block a user