'Return the backend as an URI, sanitizing the password or not.'

def as_uri(self, include_password=False):

    if include_password:
        return self.url
    url = maybe_sanitize_url((self.url or u''))
    return (url[:(-1)] if url.endswith(u':///') else url)
