title: The serializer field might be named incorrectly and not match any attribute or key on the `QuerySet` instance
body: <p>I am using Django Rest and my request parameter contains:</p>
  <pre><code>[
  {
      &quot;job_role&quot;: 2,
      &quot;technology&quot;: 1
  },
  {
      &quot;job_role&quot;: 1,
      &quot;technology&quot;: 1
  },
  {
      &quot;job_role&quot;: 2,
      &quot;technology&quot;: 1
  }
  ]
  </code></pre>
  <p>My models are:</p>
  <pre><code>class Technology(models.Model):
      name = models.CharField(max_length=50)
  
      def __str__(self):
          return self.name
  
  class JobRole(models.Model):
      role_name = models.CharField(max_length=100)
  
      def __str__(self):
          return self.role_name
  
  class ExpertPricing(models.Model):
      role_name = models.OneToOneField(JobRole, related_name=&quot;role&quot;, on_delete=models.SET_NULL, null=True)
      experience_in_years = models.PositiveBigIntegerField()
      technology = models.OneToOneField(Technology, related_name=&quot;technology&quot;, on_delete=models.SET_NULL, null=True)
      salary_per_month = models.PositiveBigIntegerField()
  </code></pre>
  <p>My view looks like this:</p>
  <pre><code>class PricingView(APIView):
      
      def post(self, request):
          datas = request.data
          data_list = []
          for data in datas:
              job_role_id = data[&quot;job_role&quot;]
              technology_id = data[&quot;technology&quot;]
  
              job_role = JobRole.objects.get(pk=job_role_id)
              technology = Technology.objects.get(pk=technology_id)
              expert_pricing = ExpertPricing.objects.filter(role_name=job_role, technology=technology)
              if expert_pricing:
                  data_list.append(expert_pricing)
          serializer = ExpertPricingSerializer(data_list, many=True)
          return Response(serializer.data, status=status.HTTP_200_OK)
  </code></pre>
  <p><strong>serializers.py</strong></p>
  <pre><code>class TechnologySerializer(serializers.ModelSerializer):
      class Meta:
          model = Technology
          fields = (&quot;id&quot;, &quot;name&quot;)
  
  
  class JobRoleSerializer(serializers.ModelSerializer):
      class Meta:
          model = JobRole
          fields = (&quot;id&quot;,&quot;role_name&quot;)
  
  
  class ExpertPricingSerializer(serializers.ModelSerializer):
      role = JobRoleSerializer(many=False, read_only=True)
      technology = TechnologySerializer(many=False, read_only=True)
      class Meta:
          model = ExpertPricing
          fields = &quot;__all__&quot;
  </code></pre>
  <p>I am unable to understand why <code>data_list</code> is not being serialized.</p>
  <p>the error says:</p>
  <pre><code>AttributeError: Got AttributeError when attempting to get a value for field `experience_in_years` on serializer `ExpertPricingSerializer`.
  The serializer field might be named incorrectly and not match any attribute or key on the `QuerySet` instance.
  Original exception text was: 'QuerySet' object has no attribute 'experience_in_years'.
  </code></pre>