title: DRF - How to concatanate serialized model with custom field
body: <p>i need to concatanate serialized models with custom field = list[]</p>
  <p><a href="https://i.stack.imgur.com/GpHie.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GpHie.png" alt="enter image description here" /></a></p>
  <p>i have a user_profile model and i want to know if particular user is &quot;mine(active user's)&quot; friend, in the users list (list_boolean = [&quot;True&quot;, &quot;False&quot;, &quot;True&quot;])</p>
  <p>views.py</p>
  <pre><code>class User_profile_view(APIView):
      def get(self, request): 
  
          #this is example list which i need to link
          list_boolean = [&quot;True&quot;, &quot;False&quot;, &quot;True&quot;]
          query = User_profile.objects.all()
          serializer_class = User_profile_serializer(query, many=True)
          return Response(serializer_class.data)
  </code></pre>
  <p>models.py</p>
  <pre><code>class User_profile(models.Model):
      user = models.OneToOneField(User,on_delete=models.CASCADE)
      age = models.CharField(max_length=100)
      city = models.CharField(max_length=100)
  </code></pre>
  <p>serializer.py</p>
  <pre><code>class User_profile_serializer(serializers.ModelSerializer):
      class Meta:
          model = User_profile
          exclude = [&quot;id&quot;]
  </code></pre>
  <p>is here any way to link particular list, to objects? it might be inside of the object (which is better) or outside</p>