          # The queryset must be reduced to a list of values using values(),
          # then converted into a query
          self.assertQuerysetEqual(
              Article.objects.filter(
                          reporter__in=Reporter.objects.filter(first_name='John').values('pk').query
                      ).distinct(),
              [
                  "<Article: John's second story>",
                  "<Article: This is a test>",
              ])
  
 
</s> remove                     "<Article: John's second story>",
                    "<Article: Paul's story>",
                    "<Article: This is a test>",
 </s> add                 "<Article: John's second story>",
                "<Article: Paul's story>",
                "<Article: This is a test>", </s> remove                 "<Article: Article 1>",
                "<Article: Article 2>",
 </s> add             "<Article: Article 1>",
            "<Article: Article 2>", </s> remove                 'value': 123,
                'fn': datetime.now,
 </s> add             'value': 123,
            'fn': datetime.now, </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                 "<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>"
                reporter__in=Reporter.objects.filter(first_name='John').values('pk').query
            ).distinct(),
          # The queryset must be reduced to a list of values using values(),
          # then converted into a query
          self.assertQuerysetEqual(
              Article.objects.filter(
                reporter__in=Reporter.objects.filter(first_name='John').values('pk').query
            ).distinct(),
                reporter__in=Reporter.objects.filter(first_name='John').values('pk').query
            ).distinct(),
              [
                  "<Article: John's second story>",
                  "<Article: This is a test>",
              ])
  
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
tests/many_to_one/tests.py