def put(self, request: HttpRequest, id: str, dto: PersonInDto): id = self.parse_int_pk(id) person = PersonService.update(id, dto.name) return ApiResponse.success(PersonOutDto.from_person(person))
def save(self, commit=True): person = PersonService.update(id=self.cleaned_data[ID], name=self.cleaned_data[NAME]) return person