              ])
          self.assertQuerysetEqual(
              Article.objects.filter(reporter__in=[self.r.id,self.r2.id]).distinct(),
              [
                      "<Article: John's second story>",
                      "<Article: Paul's story>",
                      "<Article: This is a test>",
              ])
          self.assertQuerysetEqual(
              Article.objects.filter(reporter__in=[self.r,self.r2]).distinct(),
              [
                  "<Article: John's second story>",
 
</s> remove                         reporter__in=Reporter.objects.filter(first_name='John').values('pk').query
                    ).distinct(),
 </s> add                 reporter__in=Reporter.objects.filter(first_name='John').values('pk').query
            ).distinct(), </s> remove                 "<Article: Article 1>",
                "<Article: Article 2>",
 </s> add             "<Article: Article 1>",
            "<Article: Article 2>", </s> remove                 "<Article: Article 1>",
                "<Article: Article 2>",
                "<Article: Article 3>",
                "<Article: Article 4>",
                "<Article: Article 5>"
 </s> add             "<Article: Article 1>",
            "<Article: Article 2>",
            "<Article: Article 3>",
            "<Article: Article 4>",
            "<Article: Article 5>" </s> remove                 "<Article: Article 6>",
                "<Article: Article 7>",
                "<Article: Article 8>",
                "<Article: Article 9>"
 </s> add             "<Article: Article 6>",
            "<Article: Article 7>",
            "<Article: Article 8>",
            "<Article: Article 9>" </s> remove                 Party.objects.filter(when__year=1), [
                        datetime.date(1, 3, 3),
                ],
                attrgetter("when")
 </s> add             Party.objects.filter(when__year=1), [
                datetime.date(1, 3, 3),
            ],
            attrgetter("when")
                "<Article: John's second story>",
                "<Article: Paul's story>",
                "<Article: This is a test>",
              ])
          self.assertQuerysetEqual(
              Article.objects.filter(reporter__in=[self.r.id,self.r2.id]).distinct(),
              [
                "<Article: John's second story>",
                "<Article: Paul's story>",
                "<Article: This is a test>",
                "<Article: John's second story>",
                "<Article: Paul's story>",
                "<Article: This is a test>",
                "<Article: John's second story>",
                "<Article: Paul's story>",
                "<Article: This is a test>",
              ])
          self.assertQuerysetEqual(
              Article.objects.filter(reporter__in=[self.r,self.r2]).distinct(),
              [
                  "<Article: John's second story>",
keep keep keep keep replace replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
tests/many_to_one/tests.py