code: def reverse(self, request, view_name):
          
          http_type = 'https://' if request.is_secure() else 'http://'
  
          domain = get_current_site(request).domain
  
          url = ''.join((http_type, self.schema_name, '.', domain, reverse(view_name)))
  
          return url
docs: Returns the URL of this tenant.