diff options
| author | Adam Johnson <me@adamj.eu> | 2026-01-10 20:38:56 +0000 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-01-16 09:17:57 -0500 |
| commit | a77e541d1d8766b0e7d2c4143076ef07973f5bd9 (patch) | |
| tree | ef572eb99dc6c1c81a35e030764c8a15976add81 /tests/forms_tests/widget_tests/test_clearablefileinput.py | |
| parent | 211b63142786ea77953de4f2850961e259c5b335 (diff) | |
Fixed #36801 -- Avoided unnecessary calculation in construct_change_message().
`changed_field_labels` is only needed if there are changes to log, so move its
calculation, including the somewhat costly `translation_override()`, inside the
conditional that checks for changes. Also avoid reading `form.changed_data`
when it’s already bound to `changed_data`.
co-authored-by: Rodolfo Becerra <44782644+rodolvbg@users.noreply.github.com>
Diffstat (limited to 'tests/forms_tests/widget_tests/test_clearablefileinput.py')
0 files changed, 0 insertions, 0 deletions
