1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

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,14 @@ Django 1.4.17 release notes
*Under development*
Django 1.4.17 ...
Django 1.4.17 fixes a regression in the 1.4.14 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
(`#23754 <http://code.djangoproject.com/ticket/23754>`_).

14
docs/releases/1.5.12.txt Normal file
View File

@@ -0,0 +1,14 @@
===========================
Django 1.5.12 release notes
===========================
*Under development*
Django 1.5.12 fixes a regression in the 1.5.9 security release.
Bugfixes
========
* Fixed a regression with dynamically generated inlines and allowed field
references in the admin
(`#23754 <http://code.djangoproject.com/ticket/23754>`_).

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`).

View File

@@ -83,3 +83,6 @@ Bugfixes
* Added missing context to the admin's ``delete_selected`` view that prevented
custom site header, etc. from appearing (:ticket:`23898`).
* Fixed a regression with dynamically generated inlines and allowed field
references in the admin (:ticket:`23754`).

View File

@@ -57,6 +57,7 @@ versions of the documentation contain the release notes for any later releases.
.. toctree::
:maxdepth: 1
1.5.12
1.5.11
1.5.10
1.5.9