Branch: refs/heads/master
Home:
https://github.com/django/django
Commit: b065aeb17f9daf395e22d4d5f9f49c0e2c7f4522
https://github.com/django/django/commit/b065aeb17f9daf395e22d4d5f9f49c0e2c7f4522
Author: Anssi Kääriäinen <
akaa...@gmail.com>
Date: 2013-08-20 (Tue, 20 Aug 2013)
Changed paths:
M django/db/models/fields/related.py
M tests/model_inheritance/models.py
M tests/model_inheritance/tests.py
Log Message:
-----------
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.