--
Ticket URL: <https://code.djangoproject.com/ticket/20946>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"b065aeb17f9daf395e22d4d5f9f49c0e2c7f4522"]:
{{{
#!CommitTicketReference repository=""
revision="b065aeb17f9daf395e22d4d5f9f49c0e2c7f4522"
Fixed #20946 -- model inheritance + m2m failure
Cleaned up the internal implementation of m2m fields by removing
related.py _get_fk_val(). The _get_fk_val() was doing the wrong thing
if asked for the foreign key value on foreign key to parent model's
primary key when child model had different primary key field.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20946#comment:1>
Comment (by Andrew Godwin <andrew@…>):
In [changeset:"244e2b71f512605f3d0a8e1ba4c9d6b538acf69d"]:
{{{
#!CommitTicketReference repository=""
revision="244e2b71f512605f3d0a8e1ba4c9d6b538acf69d"
Fixed #20946 -- model inheritance + m2m failure
Cleaned up the internal implementation of m2m fields by removing
related.py _get_fk_val(). The _get_fk_val() was doing the wrong thing
if asked for the foreign key value on foreign key to parent model's
primary key when child model had different primary key field.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20946#comment:2>
Comment (by Ramiro Morales <cramm0@…>):
In [changeset:"862e1ff2340a1e28a3e7c6904d2b0283085f34c8"]:
{{{
#!CommitTicketReference repository=""
revision="862e1ff2340a1e28a3e7c6904d2b0283085f34c8"
Fixed #22421 -- Regression in fixtures loading.
Loading fixtures were failing since the refactoring in 244e2b71f5 for
inheritance setups where the chain contains abstract models and the
root ancestor contains a M2M relation.
Thanks Stanislas Guerra for the report.
Refs #20946.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20946#comment:3>
Comment (by Tim Graham <timograham@…>):
In [changeset:"fb45e666c204d7188c38469ca1f661a9b113b85b"]:
{{{
#!CommitTicketReference repository=""
revision="fb45e666c204d7188c38469ca1f661a9b113b85b"
[1.7.x] Fixed #22421 -- Regression in fixtures loading.
Loading fixtures were failing since the refactoring in 244e2b71f5 for
inheritance setups where the chain contains abstract models and the
root ancestor contains a M2M relation.
Thanks Stanislas Guerra for the report.
Refs #20946.
Backport of 862e1ff234 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20946#comment:4>