Changed over to django form for selection. Shorter code.