Preheat oven to 325 degrees F.
In a medium saucepan, melt the butter over medium heat. Add the onions and saute until lightly browned.
Put the pie pan on a sheet pan. Line the bottom of pie crust with the onions.
In a small bowl, beat the eggs and the flour together to combine. Add the milk, sour cream and salt. Mix well and pour over the onions. Garnish with the bacon and bake until firm in the center, about 30 minutes. Transfer to a serving platter and serve.