Removing unused code from locations/views.py