Arrange tomato slices in pie crust, sprinkling each layer with sugar, salt and pepper. Sprinkle top layer evenly with flour.
Stir together mayonnaise and cheese; spread evenly over tomato. Bake at 350° for 30 minutes.