diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-06-28 20:30:19 -0700 |
|---|---|---|
| committer | Jon Dufresne <jon.dufresne@gmail.com> | 2017-06-30 15:57:48 -0700 |
| commit | a1be12fe193c8f3de8a0b0820f460a302472375f (patch) | |
| tree | c91fc4242a996489ede8e72aeb1a9f6ba91c5695 /docs | |
| parent | 5cbcb3683964205ce023157ca181d05a31be2ab5 (diff) | |
Fixed #28345 -- Applied limit_choices_to during ModelForm.__init__().
field_for_model() now has an additional keyword argument,
apply_limit_choices_to, allowing it to continue to be used to create
form fields dynamically after ModelForm.__init__() is called.
Thanks Tim Graham for the review.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.11.3.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/releases/1.11.3.txt b/docs/releases/1.11.3.txt index 227c94abb4..79fd3edb6a 100644 --- a/docs/releases/1.11.3.txt +++ b/docs/releases/1.11.3.txt @@ -57,3 +57,6 @@ Bugfixes * Fixed ``UnboundLocalError`` crash in ``RenameField`` with nonexistent field (:ticket:`28350`). + +* Fixed a regression preventing a model field's ``limit_choices_to`` from being + evaluated when a ``ModelForm`` is instantiated (:ticket:`28345`). |
