Django View upadate

still doesnt work with ajax call but is getting there hopefully