Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad Call NameLoad attr attr Str keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd Call NameLoad NameLoad Str CompareEq AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A django.conf settings django.contrib.contenttypes.models ContentType django.db connection django.shortcuts get_object_or_404 utils get_tenant_model remove_www get_public_schema_name get_tenant_domain_model TenantMiddleware N/A object N/A N/A 
    This middleware should be placed at the very top of the middleware stack.
    Selects the proper database schema using the request host. Can fail in
    various ways which is better than corrupting or revealing data.
     hostname_from_request N/A N/A self request N/A N/A N/A  Extracts hostname from request. Used for custom requests filtering.
            By default removes the request's port and common prefixes.
         N/A N/A remove_www N/A N/A N/A N/A N/A request get_host split : N/A 0 N/A process_request N/A N/A self request N/A N/A N/A N/A N/A connection set_schema_to_public N/A hostname N/A N/A self hostname_from_request request N/A domain N/A get_object_or_404 N/A N/A N/A N/A get_tenant_domain_model objects select_related tenant domain hostname N/A N/A request tenant N/A domain tenant N/A N/A N/A connection set_tenant N/A request tenant N/A N/A N/A N/A ContentType objects clear_cache N/A N/A N/A hasattr settings PUBLIC_SCHEMA_URLCONF N/A N/A N/A request tenant schema_name N/A get_public_schema_name N/A N/A N/A request urlconf N/A settings PUBLIC_SCHEMA_URLCONF N/A N/A