Small review

Made a few comments about python style and also some stuff you could be doing to simplify your db queries / cleanup your views.

Oh! One thing I forgot to mention: I believe [PEP8](http://www.python.org/dev/peps/pep-0008/) (the Python style guide) says to use 4 spaces rather than tabs for indentation; some people are pretty fantatical about it so its usually a good thing to follow