          Item.objects.create(name="item1", child=c1)
          Item.objects.create(name="item2")
  
          self.assertQuerysetEqual(
                  Item.objects.select_related("child").order_by("name"),
                  ["<Item: item1>", "<Item: item2>"]
          )
  
      def test_regression_12851(self):
          """
          Regression for #12851
 
</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") </s> remove                 Event.objects.raw('SELECT * FROM timezones_event WHERE dt = %s', [dt]),
                [event],
                transform=lambda d: d)
 </s> add             Event.objects.raw('SELECT * FROM timezones_event WHERE dt = %s', [dt]),
            [event],
            transform=lambda d: d) </s> remove                 Event.objects.raw('SELECT * FROM timezones_event WHERE dt = %s', [dt]),
                [event],
                transform=lambda d: d)
 </s> add             Event.objects.raw('SELECT * FROM timezones_event WHERE dt = %s', [dt]),
            [event],
            transform=lambda d: d) </s> remove                 Author.objects.filter(Q(extra__note=self.n1)|Q(item__note=self.n3)).filter(id=self.a1.id),
 </s> add             Author.objects.filter(Q(extra__note=self.n1)|Q(item__note=self.n3)).filter(id=self.a1.id), </s> remove                 InternalCertificationAudit._meta.verbose_name_plural,
                'Audits'
 </s> add             InternalCertificationAudit._meta.verbose_name_plural,
            'Audits'
            Item.objects.select_related("child").order_by("name"),
            ["<Item: item1>", "<Item: item2>"]
          Item.objects.create(name="item1", child=c1)
          Item.objects.create(name="item2")
  
          self.assertQuerysetEqual(
            Item.objects.select_related("child").order_by("name"),
            ["<Item: item1>", "<Item: item2>"]
            Item.objects.select_related("child").order_by("name"),
            ["<Item: item1>", "<Item: item2>"]
          )
  
      def test_regression_12851(self):
          """
          Regression for #12851
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
tests/select_related_regress/tests.py