def lookupToString(lookup_dict):
    """
    Convert the lookup dict into a string.
    e.g.:
        {"field1": "a", "field2": "b"} -> "field1=a,field2=b"
    """
    return ",".join("%s=%s" % (k, v) for k, v in lookup_dict.items())