diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2014-11-12 21:18:11 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-11-12 22:46:00 +0100 |
| commit | 606c57a132a1e1e680853c014efc41110ee75a80 (patch) | |
| tree | de1d9fd7067c715924f56f315e8444fbcd6aef70 /docs | |
| parent | 3e0d7de8a6380c5747717cf32166864a22f258d5 (diff) | |
[1.7.x] Fixed #23795 -- Fixed a regression in custom form fields
Custom form fields having a `queryset` attribute but no
`limit_choices_to` could no longer be used in ModelForms.
Refs #2445.
Thanks to artscoop for the report.
Backport of bfb11b95626f39e2f5e18d97d7761c6f93dcc1a9 from master.
Conflicts:
django/forms/fields.py
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.7.2.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/1.7.2.txt b/docs/releases/1.7.2.txt index 3d9a74616b..207b7d2a0c 100644 --- a/docs/releases/1.7.2.txt +++ b/docs/releases/1.7.2.txt @@ -52,3 +52,7 @@ Bugfixes * Fixed a migration serializing bug involving ``float("nan")`` and ``float("inf")`` (:ticket:23770:). + +* Fixed a regression where custom form fields having a ``queryset`` attribute + but no ``limit_choices_to`` could not be used in a + :class:`~django.forms.ModelForm` (:ticket:`23795`). |
