def METHOD_NAME(self):
    url = self.url
    if url:
        if self.query_string:
            url = url + "?" + safe_urlencode(get_path(self.query_string, filter=True))
        if self.fragment:
            url = url + "#" + self.fragment
    return url