(client)
return ",".join(client.uid for client in clients)
returns a comma-separated list of UIDs of one or more devices
returns a comma-separated list of UIDs of one or more devices
returns a comma - separated list of UIDs of one or more devices
def devices_uids(client):
    """returns a comma-separated list of UIDs of one or more devices"""
    if isinstance(client, SyncGroup):
        clients = client.client_set.all()
    elif isinstance(client, Client):
        clients = [client]
    return ",".join(client.uid for client in clients)
def devices_uids ( client ) : if isinstance ( client , SyncGroup ) : clients = client . client_set . all ( ) elif isinstance ( client , Client ) : clients = [ client ] return "," . join ( client . uid for client in clients )