title: How to update multiple objects in django rest framework?
body: <p>I am trying to update multiple objects using IDs which i am passing in every objects that need to be updated but can't find any way to do it successfully. Here is my code</p>
  
  <p>models.py</p>
  
  <pre><code>class EventTicket(models.Model):
      id = models.UUIDField(primary_key=True, default=uuid_generate_v1mc, editable=False)
      name = models.CharField(max_length=250)
      description = models.TextField(max_length=1000)
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>  class EventTicketView(APIView, PaginationHandlerMixin):
          permission_classes = (AllowAny,)
          def get_object(self, ticket_id):
              try:
                  return EventTicket.objects.get(id=ticket_id)
              except EventTicket.DoesNotExist():
                  raise status.HTTP_400_BAD_REQUEST
          def patch(self, request, *args, **kwargs):
              for each_ticket in request.data:
  
                  ticket_id = self.get_object(each_ticket['ticket_id'])
  
                  serializer = EventTicketSerializer(instance=ticket_id,data=request.data,partial=True)
                  if serializer.is_valid():
                      serializer.save()
                      result = {
                          'message': "updated sucessfully"
                      }
                      return Response(result, status=status.HTTP_201_CREATED)
                  else:
                      return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
  </code></pre>
  
  <p>serializers.py</p>
  
  <pre><code>class EventTicketSerializer(serializers.ModelSerializer):
      class Meta:
          model = EventTicket
          fields = ['name', 'description']
  ```
  
  I have to send data like list of multiple objects :::
  [
      {
      "ticket_id": "054665ea-4fde-11ea-94b2-9f415c43ba4c",    
      "name": "chris",
      "description":"The golden ticket for day only",
  
      },
      {   
      "ticket_id": "054656ea-4fde-11ea-94b2-9f415c43ba4c",
      "name": "daut",
      "description":"The premium ticket for day only",
  
      }
  ]
  </code></pre>