Fry onions in a small amount of olive oil, add to the warm pumpkin mass, chop together and add salt and pepper with your taste.
Separately chop walnut, mix it with the pumpkin mass, put on the frying pan and fry for 7 minutes, than cool down and place on the desired dish.