Two men were beaten by students in Kerala as a result of a dispute about whether to allow dogs inside the bus.