Class names are generally CamelCase, so this should be

    class DeleteFarm(SingleObjectMixin, View):