Fixed #23754 -- Always allowed reference to the primary key in the admin

This change allows dynamically created inlines "Add related" button to work
correcly as long as their associated foreign key is pointing to the primary
key of the related model.

Thanks to amorce for the report, Julien Phalip for the initial patch,
and Collin Anderson for the review.
This commit is contained in:
Simon Charette 2014-11-16 16:42:09 +01:00 committed by Tim Graham
parent e0d1f2684a
commit f9c4e14aec
9 changed files with 67 additions and 27 deletions

View file

@ -4,7 +4,13 @@ Django 1.6.9 release notes
*Under development*
Django 1.6.9 ...
Django 1.6.9 fixes a regression in the 1.6.6 security release.
Additionally, Django's vendored version of six, :mod:`django.utils.six`, has
been upgraded to the latest release (1.8.0).
Bugfixes
========
* Fixed a regression with dynamically generated inlines and allowed field
references in the admin (:ticket:`23754`).