cleaned up farms/views.py