def generate_payload(location):
    payload = '{short_code}\n{name}\n{address}, {city}'.format(short_code=location.short_code, name=location.name, address=location.address, city=location.city)
    return payload
def generate_payload(location):
    payload = '{short_code}\n{name}\n{address}, {city}'.format(short_code=location.short_code, name=location.name, address=location.address, city=location.city)
    return payload