def save(self, commit=True): door = DoorService.update( id=self.cleaned_data[ID], name=self.cleaned_data[NAME], access_id=self.cleaned_data[ACCESS_ID] ) return door
def put(self, request: HttpRequest, id: str, dto: DoorInDto): id = self.parse_int_pk(id) door = DoorService.update(id, dto.name, dto.access_id) return ApiResponse.success(DoorOutDto.from_door(door))