• 
      

    Register type equality checks for Q and F objects.

    Review Request #12039 — Created Feb. 4, 2022 and submitted — Latest diff uploaded

    Information

    Django Evolution
    release-2.x

    Reviewers

    TestCase now registers the existing assertQEqual() and a new
    assertFEqual() for comparing Q and F objects. This enables
    comparison without having to explicitly call those helper methods. This
    simplifies unit testing and reduces the chances of issues on different
    versions of Django.

    Unit tests pass for all supported versions of Python and Django.

    Commits

    Files