def patch(self, request, *args, **kwargs):
        self.object = self.get_object()
        self.mapper = self.get_mapper(self.object)

        self.data = self.get_request_data({})

        try:
            self.mapper._patch(self.data)
        except __HOLE__ as e:
            return self.patch_invalid(e.error_dict)

        return self.patch_valid()
dataset/ETHPy150Open funkybob/django-nap/nap/rest/views.py/ObjectPatchMixin.patch