      OneToOneCategory, NullableName, ProxyCategory, SingleObject, RelatedObject,
      ModelA, ModelB, ModelC, ModelD, Responsibility, Job, JobResponsibilities,
      BaseA, FK1, Identifier, Program, Channel, Page, Paragraph, Chapter, Book,
      MyObject, Order, OrderItem, SharedConnection, Task, Staff, StaffUser,
      CategoryRelationship)
  
  class BaseQuerysetTest(TestCase):
      def assertValueQuerysetEqual(self, qs, values):
          return self.assertQuerysetEqual(qs, values, transform=lambda x: x)
  
 
</s> remove                             db_table = self.query.get_meta().db_table
                            fields = [f for f in fields if db_table in only_load and
                                      f.column in only_load[db_table]]
 </s> add                             fields = [f for f in fields if f.model._meta.db_table not in only_load or
                                      f.column in only_load[f.model._meta.db_table]]
    CategoryRelationship, Ticket21203Parent, Ticket21203Child)
      OneToOneCategory, NullableName, ProxyCategory, SingleObject, RelatedObject,
      ModelA, ModelB, ModelC, ModelD, Responsibility, Job, JobResponsibilities,
      BaseA, FK1, Identifier, Program, Channel, Page, Paragraph, Chapter, Book,
      MyObject, Order, OrderItem, SharedConnection, Task, Staff, StaffUser,
    CategoryRelationship, Ticket21203Parent, Ticket21203Child)
  
  class BaseQuerysetTest(TestCase):
      def assertValueQuerysetEqual(self, qs, values):
          return self.assertQuerysetEqual(qs, values, transform=lambda x: x)
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #21203 -- resolve_columns fields misalignment

In queries using .defer() together with .select_related() the values
and fields arguments didn't align properly for resolve_columns(). 
tests/queries/tests.py