Tidy up views.py slightly

Add docstring; remove blank line.