mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
[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 bfb11b9562 from master.
Conflicts:
django/forms/fields.py
This commit is contained in:
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user