def get(self, *args, **kwargs): pet_type = kwargs['pet_type'] data = {} data["breed"] = Breed.get(pet_type) self.SendJson(data)