Update expected queries to match results when running against Django 5.2.

Review Request #14814 — Created Feb. 11, 2026 and updated

Information

Review Board
master

Reviewers

Some query behavior inside Django has changed between 4.2 and 5.2, and
we need to update some expected queries as a result. This change does
that, and also updates the ReviewDetailView and CommentManager tests
to use our shared equeries where we had some duplication.

Ran unit tests.

Summary ID
Update expected queries to match results when running against Django 5.2.
Some query behavior inside Django has changed between 4.2 and 5.2, and we need to update some expected queries as a result. This change does that, and also updates the `ReviewDetailView` and `CommentManager` tests to use our shared equeries where we had some duplication. Testing Done: Ran unit tests.
rwvkoyyrvkkznxvwvwrulntkttwlrxmp
Checks run (2 succeeded)
flake8 passed.
JSHint passed.