├── .coveragerc ├── .gitignore ├── .travis.yml ├── AUTHORS ├── README.rst ├── setup.cfg ├── setup.py ├── tenancy ├── __init__.py ├── apps.py ├── auth │ ├── __init__.py │ └── backends.py ├── compat.py ├── forms.py ├── management │ ├── __init__.py │ └── commands │ │ ├── __init__.py │ │ ├── createtenant.py │ │ └── createtenantsuperuser.py ├── managers.py ├── middleware.py ├── models.py ├── mutant │ ├── __init__.py │ └── models.py ├── operations.py ├── settings.py ├── signals.py ├── utils.py └── views.py ├── tests ├── __init__.py ├── client.py ├── forms.py ├── hosts.py ├── managers.py ├── models.py ├── settings │ ├── __init__.py │ ├── postgresql.py │ └── sqlite3.py ├── tenant_urls.py ├── test_auth.py ├── test_commands.py ├── test_forms.py ├── test_hosts.py ├── test_managers.py ├── test_middleware.py ├── test_models.py ├── test_mutant.py ├── test_operations.py ├── test_operations_migrations │ ├── __init__.py │ ├── add_field │ │ ├── 0001_create_model.py │ │ ├── 0002_add_fields.py │ │ └── __init__.py │ ├── alter_field │ │ ├── 0001_create_model.py │ │ ├── 0002_alter_fields.py │ │ └── __init__.py │ ├── alter_index_together │ │ ├── 0001_create_model.py │ │ ├── 0002_remove_index_together.py │ │ └── __init__.py │ ├── alter_model_table │ │ ├── 0001_create_model.py │ │ ├── 0002_alter_tenant_model.py │ │ └── __init__.py │ ├── alter_unique_together │ │ ├── 0001_create_model.py │ │ ├── 0002_remove_unique_together.py │ │ └── __init__.py │ ├── create_model │ │ ├── 0001_initial.py │ │ └── __init__.py │ ├── delete_model │ │ ├── 0001_create_model.py │ │ ├── 0002_delete_model.py │ │ └── __init__.py │ ├── remove_field │ │ ├── 0001_create_model.py │ │ ├── 0002_delete_fields.py │ │ └── __init__.py │ ├── rename_field │ │ ├── 0001_create_model.py │ │ ├── 0002_rename_fields.py │ │ └── __init__.py │ ├── rename_model │ │ ├── 0001_create_model.py │ │ ├── 0002_alter_tenant_model.py │ │ └── __init__.py │ ├── run_python │ │ ├── 0001_create_model.py │ │ ├── 0002_add_data.py │ │ └── __init__.py │ └── run_sql │ │ ├── 0001_create_model.py │ │ ├── 0002_add_data.py │ │ └── __init__.py ├── test_signals.py ├── test_views.py ├── urls.py ├── utils.py └── views.py └── tox.ini /.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/.coveragerc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/.travis.yml -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/AUTHORS -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/README.rst -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/setup.cfg -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/setup.py -------------------------------------------------------------------------------- /tenancy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/__init__.py -------------------------------------------------------------------------------- /tenancy/apps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/apps.py -------------------------------------------------------------------------------- /tenancy/auth/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tenancy/auth/backends.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/auth/backends.py -------------------------------------------------------------------------------- /tenancy/compat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/compat.py -------------------------------------------------------------------------------- /tenancy/forms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/forms.py -------------------------------------------------------------------------------- /tenancy/management/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/management/__init__.py -------------------------------------------------------------------------------- /tenancy/management/commands/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tenancy/management/commands/createtenant.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/management/commands/createtenant.py -------------------------------------------------------------------------------- /tenancy/management/commands/createtenantsuperuser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/management/commands/createtenantsuperuser.py -------------------------------------------------------------------------------- /tenancy/managers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/managers.py -------------------------------------------------------------------------------- /tenancy/middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/middleware.py -------------------------------------------------------------------------------- /tenancy/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/models.py -------------------------------------------------------------------------------- /tenancy/mutant/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tenancy/mutant/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/mutant/models.py -------------------------------------------------------------------------------- /tenancy/operations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/operations.py -------------------------------------------------------------------------------- /tenancy/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/settings.py -------------------------------------------------------------------------------- /tenancy/signals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/signals.py -------------------------------------------------------------------------------- /tenancy/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/utils.py -------------------------------------------------------------------------------- /tenancy/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tenancy/views.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/client.py -------------------------------------------------------------------------------- /tests/forms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/forms.py -------------------------------------------------------------------------------- /tests/hosts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/hosts.py -------------------------------------------------------------------------------- /tests/managers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/managers.py -------------------------------------------------------------------------------- /tests/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/models.py -------------------------------------------------------------------------------- /tests/settings/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/settings/__init__.py -------------------------------------------------------------------------------- /tests/settings/postgresql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/settings/postgresql.py -------------------------------------------------------------------------------- /tests/settings/sqlite3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/settings/sqlite3.py -------------------------------------------------------------------------------- /tests/tenant_urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/tenant_urls.py -------------------------------------------------------------------------------- /tests/test_auth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_auth.py -------------------------------------------------------------------------------- /tests/test_commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_commands.py -------------------------------------------------------------------------------- /tests/test_forms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_forms.py -------------------------------------------------------------------------------- /tests/test_hosts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_hosts.py -------------------------------------------------------------------------------- /tests/test_managers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_managers.py -------------------------------------------------------------------------------- /tests/test_middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_middleware.py -------------------------------------------------------------------------------- /tests/test_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_models.py -------------------------------------------------------------------------------- /tests/test_mutant.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_mutant.py -------------------------------------------------------------------------------- /tests/test_operations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/add_field/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/add_field/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/add_field/0002_add_fields.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/add_field/0002_add_fields.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/add_field/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_field/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/alter_field/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_field/0002_alter_fields.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/alter_field/0002_alter_fields.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_field/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_index_together/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/alter_index_together/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_index_together/0002_remove_index_together.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/alter_index_together/0002_remove_index_together.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_index_together/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_model_table/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/alter_model_table/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_model_table/0002_alter_tenant_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/alter_model_table/0002_alter_tenant_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_model_table/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_unique_together/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/alter_unique_together/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_unique_together/0002_remove_unique_together.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/alter_unique_together/0002_remove_unique_together.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/alter_unique_together/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/create_model/0001_initial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/create_model/0001_initial.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/create_model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/delete_model/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/delete_model/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/delete_model/0002_delete_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/delete_model/0002_delete_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/delete_model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/remove_field/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/remove_field/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/remove_field/0002_delete_fields.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/remove_field/0002_delete_fields.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/remove_field/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/rename_field/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/rename_field/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/rename_field/0002_rename_fields.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/rename_field/0002_rename_fields.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/rename_field/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/rename_model/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/rename_model/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/rename_model/0002_alter_tenant_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/rename_model/0002_alter_tenant_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/rename_model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/run_python/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/run_python/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/run_python/0002_add_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/run_python/0002_add_data.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/run_python/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_operations_migrations/run_sql/0001_create_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/run_sql/0001_create_model.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/run_sql/0002_add_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_operations_migrations/run_sql/0002_add_data.py -------------------------------------------------------------------------------- /tests/test_operations_migrations/run_sql/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_signals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_signals.py -------------------------------------------------------------------------------- /tests/test_views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/test_views.py -------------------------------------------------------------------------------- /tests/urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/urls.py -------------------------------------------------------------------------------- /tests/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/utils.py -------------------------------------------------------------------------------- /tests/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tests/views.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charettes/django-tenancy/HEAD/tox.ini --------------------------------------------------------------------------------