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.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/28725#comment:1>
* owner: nobody => Nadege
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/28725#comment:2>
* has_patch: 0 => 1
Comment:
hi here is the patch [https://github.com/django/django/pull/11518 PR]
Not sure about the release it should target though.
--
Ticket URL: <https://code.djangoproject.com/ticket/28725#comment:3>
* version: 1.11 => master
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/28725#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"895b15771e5b6c48df45d11ef9ce41678639974c" 895b1577]:
{{{
#!CommitTicketReference repository=""
revision="895b15771e5b6c48df45d11ef9ce41678639974c"
Fixed #28725 -- Prevented serializing inherited ManyToManyFields in child
model.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28725#comment:5>