• 
      

    Track subqueries in Q filter values in catch_queries().

    Review Request #13404 — Created Nov. 7, 2023 and submitted — Latest diff uploaded

    Information

    Djblets
    release-3.x

    Reviewers

    catch_queries() now looks for Q(key=SubQuery) expressions, such as
    Q(pk__in=MyModel.objects.all()), and records those expressions as
    subqueries. This enables deeper comparison of these subqueries, rather
    than the old behavior of comparing the resulting object lists.

    Unit tests pass.

    Verified that I could capture and compare the subqueries in some
    in-progress unit tests.

    Commits

    Files