Update views.py

Whoops.  Made all the queries into one query.  Habit. 

json is better.