Update expected queries for changes in Django's ORM.
Review Request #13484 — Created Jan. 4, 2024 and submitted — Latest diff uploaded
Django has made some under-the-hood changes to related fields in the
ORM, which broke some of our expected queries. This change fixes them up
so tests pass.
Ran unit tests.