Fix a bunch of errors in query count assertions.
Review Request #12057 — Created Feb. 12, 2022 and submitted — Latest diff uploaded
With the update to Django, we had a number of tests that were asserting
on specific query counts that needed to be updated. These fall into two
categories:
- Datagrid tests were experiencing increased query counts because
middleware had added a couple simple queries.- Adding items to a many-to-many relation is now done in a single query
instead of two, so several tests had reduced query counts.
Ran unit tests.