For the shortcrust pastry, stir the margarine with the sugar until creamy. Then add flour, cinnamon and milk and knead by hand to form a smooth dough. Let rest in the refrigerator for about 1/2 hour.
For the topping, drain the mangoes and collect the juice. Cut the mango pieces into thin slices. Using the vanilla pudding powder and mango juice, cook a pudding according to the instructions on the packet.
Press the dough into a tart pan or springform pan, pulling up a slight edge. Put the pudding mixture on the dough and then cover with the mango pieces.
Bake in a preheated oven at 200 ° C for approx. 35 minutes.