Tidy up details in view/applications.py