#28725: The serializer will output the many-to-many field in the parent class.
------------------------------------------------+------------------------
Reporter: 宅教授 | Owner: nobody
Type: Bug | Status: new
Component: Core (Serialization) | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
models:
{{{
class Root(Model):
varchar_field_a
many_to_many_field
class Sub(Root):
varchar_field_b
}}}
cmd: `python manager.py dumpdata`, output:
{{{
[
{
"pk": 1,
"model": "label.sub",
"fields": {
"varchar_field_b": "b",
"many_to_many_field": [...]
}
},
...
]
}}}
The point is, its export the many-to-many field in the parent class.
cmd: `python manager.py loaddata`, import the above data. Triggered by
repeated import many-to-many data uniqueness constraints.
--
Ticket URL: <https://code.djangoproject.com/ticket/28725>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.d8906340606502901862d8f0d9725a4a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.