docs: def complete(self):
          """Mark a multipart object as complete."""
          if Part.count(self) != self.last_part_number + 1:
              raise MultipartMissingParts()
  
          with db.session.begin_nested():
              self.completed = True
              self.file.readable = True
              self.file.writable = False
          return self