      """
      Update a model instance.
      Should be mixed in with `SingleObjectBaseView`.
      """
      def update(self, request, *args, **kwargs):
          try:
              self.object = self.get_object()
              created = False
          except Http404:
              self.object = None
 
</s> remove         serializer = self.get_serializer(self.object, data=request.DATA, files=request.FILES)
 </s> add         serializer = self.get_serializer(self.object, data=request.DATA, files=request.FILES, partial=partial) </s> remove         return self.update(request, *args, **kwargs)
 </s> add         return self.update(request, partial=False, *args, **kwargs)


class ParitalUpdateAPIView(mixins.UpdateModelMixin,
                            SingleObjectAPIView):

    """
    Concrete view for paritally updating a model instance.
    """
    def patch(self, request, *args, **kwargs):
        return self.update(request, partial=True, *args, **kwargs) </s> remove         return self.update(request, *args, **kwargs)
 </s> add         return self.update(request, partial=False, *args, **kwargs)

    def delete(self, request, *args, **kwargs):
        return self.destroy(request, *args, **kwargs)


class RetrievePartialUpdateDestroyAPIView(mixins.RetrieveModelMixin,
                                          mixins.UpdateModelMixin,
                                          mixins.DestroyModelMixin,
                                          SingleObjectAPIView):

    """
    Concrete view for retrieving, updating via PATCH (partial) or PUT (full),
    or deleting a model instance.
    """
    def get(self, request, *args, **kwargs):
        return self.retrieve(request, *args, **kwargs)

    def put(self, request, *args, **kwargs):
        return self.update(request, partial=False, *args, **kwargs)

    def patch(self, request, *args, **kwargs):
        return self.update(request, partial=True, *args, **kwargs) </s> remove     def get_serializer(self, instance=None, data=None, files=None):
 </s> add     def get_serializer(self, instance=None, data=None, files=None, partial=False):
    def update(self, request, partial=False, *args, **kwargs):
      """
      Update a model instance.
      Should be mixed in with `SingleObjectBaseView`.
      """
    def update(self, request, partial=False, *args, **kwargs):
          try:
              self.object = self.get_object()
              created = False
          except Http404:
              self.object = None
keep keep keep keep replace keep keep keep keep keep
 Adding PATCH support to Django REST Framework 
rest_framework/mixins.py