Sift flour. Freeze butter and grate, mix with flour until crumb is formed. Add salt, egg, and milk. Knead the dough, put it in the cold for 30 minutes.
Filling: Cut bacon into pieces, fry in a pan until crusty. Transfer the finished bacon to a plate. Cut the leeks into rings, fry in a pan. Finished onions should be soft, but not darkened. Mix it with the fried bacon. Grate the cheese on a fine grater. Beat eggs and sour cream with a whisk, add cheese and bacon with onions, mix.
Roll out the dough into a thin layer and put it in a mold, forming the sides. Cover the dough with baking paper laden with heavy cereal before baking. Bake for 15 minutes at 190-200 ° C. Take out the form with the dough, put the filling. Bake for 30 minutes.