# Path: tenant_schemas/utils.py
# def clean_tenant_url(url_string):
#     """
#     Removes the TENANT_TOKEN from a particular string
#     """
#     if hasattr(settings, 'PUBLIC_SCHEMA_URLCONF'):
#         if (settings.PUBLIC_SCHEMA_URLCONF and
#                 url_string.startswith(settings.PUBLIC_SCHEMA_URLCONF)):
#             url_string = url_string[len(settings.PUBLIC_SCHEMA_URLCONF):]
#     return url_string


from django.core.urlresolvers import reverse as reverse_default
from django.utils.functional import lazy
from tenant_schemas.utils import clean_tenant_url


def reverse(viewname, urlconf=None, args=None, kwargs=None, prefix=None,
            current_app=None):
    url = reverse_default(
        viewname=viewname,

# Path: tenant_schemas/utils.py
# def clean_tenant_url(url_string):
#     """
#     Removes the TENANT_TOKEN from a particular string
#     """
#     if hasattr(settings, 'PUBLIC_SCHEMA_URLCONF'):
#         if (settings.PUBLIC_SCHEMA_URLCONF and
#                 url_string.startswith(settings.PUBLIC_SCHEMA_URLCONF)):
#             url_string = url_string[len(settings.PUBLIC_SCHEMA_URLCONF):]
#     return url_string


# Path: tenant_schemas/urlresolvers.py
from django.core.urlresolvers import reverse as reverse_default
from django.utils.functional import lazy
from tenant_schemas.utils import clean_tenant_url



def reverse(viewname, urlconf=None, args=None, kwargs=None, prefix=None,
            current_app=None):
    url = reverse_default(
        viewname=viewname,

        urlconf=urlconf,