Wash the zucchini, grate dry, clean and slice finely. Place in a sieve, sprinkle with 1 pinch of salt and drain. Peel and halve the onion, cut it into fine slices and put it in a bowl of cold water. Peel garlic and cut into fine slices. Wash the chilli pepper, grate dry, clean and cut into fine rings. Wash dill, shake dry, pluck off flags and chop.
Briefly roast the spice grains in a pan without fat. Put vinegar, sugar, turmeric and spice seeds in a pot, bring to the boil and simmer until the sugar has dissolved. Let cool slightly. Drain onions. Put the zucchini, onions, garlic, chilli and dill in a preserving jar, pour over the preserving marinade and close.