1
0
mirror of https://github.com/django/django.git synced 2025-02-22 23:44:23 +00:00
Juan Alvarez 517d3bb4dd 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.
2023-08-19 10:29:43 +02:00
..
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2023-07-21 12:54:38 +02:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2020-10-01 07:22:28 +02:00
2020-12-01 06:24:16 +01:00
2021-01-04 08:31:51 +01:00
2021-09-01 07:40:01 +02:00
2021-10-05 09:07:26 +02:00
2021-11-01 10:18:49 +01:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2022-09-05 05:21:23 +02:00
2022-11-01 06:54:19 +01:00
2022-12-06 09:56:43 +01:00
2023-01-02 08:10:59 +01:00
2023-04-05 06:09:31 +02:00
2023-06-05 08:21:56 -03:00
2023-08-01 13:30:05 -03:00
2023-08-12 20:37:15 +02:00
2023-08-01 14:52:36 -03:00