[django/django] b065ae: Fixed #20946 -- model inheritance + m2m failure

2 views
Skip to first unread message

GitHub

unread,
Aug 21, 2013, 1:21:30 AM8/21/13
to django-...@googlegroups.com
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.



Reply all
Reply to author
Forward
0 new messages