Some improvements to lpsolver/views.py.