diff options
| author | Juan Alvarez <juan@sytex.io> | 2023-08-15 16:53:30 -0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-08-19 10:29:43 +0200 |
| commit | 517d3bb4dd17e9c51690c98d747b86a0ed8b2fbf (patch) | |
| tree | 523ff2471ff6fefbe9684d316281b8e88694b3a1 /tests/utils_tests/test_lazyobject.py | |
| parent | 6b965c600054f970bdf94017ecf2e0e6e0a4326b (diff) | |
Fixed #34779 -- Avoided unnecessary selection of non-nullable m2m fields without natural keys during serialization.
By using `select_related(None)` instead of `select_related()`, the
unnecessary joins are completely avoided. Note that the current tests
already covers the change, when the field is not `null=True`.
Regression in f9936deed1ff13b20e18bd9ca2b0750b52706b6c.
Diffstat (limited to 'tests/utils_tests/test_lazyobject.py')
0 files changed, 0 insertions, 0 deletions
