'Returns the maximum connection time of all connected sessions
in seconds. Returns nothing if there are no sessions.'

@property
def connection_time(self):

    conn = [session.conn_time for session in self.sessions.all()]
    if conn:
        return (time.time() - float(min(conn)))
    return None
