This changelog is used to track all major changes to django-tenants.
- Allowed a schema to be renamed. #388
- Stopped a crash id logging with the public tenant #358
- Fix clone_tenant command #379
- Cloning SQL changed to allow it work on AWS etc #381
- Now testing with workflow instead of Travis CI
- Read the docs now work again
- Fixed a problem with clone tenant
- You can now clone a tenants with the clone_tenant command #322
- Fixed some issues with docker-compose and the example project
- Refactor some classes/methods #325
- Make "test login" add tenant to request #340
Fixes
- Use field.attname instead of field.name in create_tenant.py
- Django 3 support
- Removed psycopg2 as a requirement #317
- Changed docker image to python 3.7 image
- Do not pip install --quiet while testing
- Added database support to validate schemas #312
- allow to disable new coloring of tenant app in admin #272
Fixes
- Fixed an issue where tenant-specific application static files (stylesheets, Javascript, images etc.), that have not been collected yet using
collectstatic_schemas
, were not being found usingTenantStaticFilesStorage
. Fixes #265. - Fix a crash (ProgrammingError) when attempting to create a schema named like a SQL keyword (select, where, ...)
Allow to create a tenant named with only numbers (123). #302 #307
Fixes
- Fixed an issue in setup.py to allow different color of tenant apps in the admin area. Should now work with PyPi.
Fixes
- Fixed an issue in setup.py to allow different color of tenant apps in the admin area. Take 2. [#262]
Fixes
- Fixed an issue with the different color of tenant apps in the admin area. [#261]
Fixes
- TenantFileSystemStorage now works [#249]
Enhancements
- support django>=2.2 [#238]
- TenantAdminMixin is available in order to register the tenant model. [#223]
- Admin site: highlight with a different color the tenant apps. [#227]
- Admin site: disable the tenant apps when in the public schema. [#227]
- Custom auth backend compatibility for TenantClient. [#228]
- Switch to psycopg2 dependency rather than psycopg2-binary [#239]
Enhancements
- Added TENANT_CREATION_FAKES_MIGRATIONS configuration parameter that can be used to copy schemas from an existing "template" schema instead of running migrations.
- schema_context now operates as a decorator too. Fixes: #199.
- Update template loaders and static file storage for Django > 2.0. Fixes: #197.
- Added pre_drop to TenantMixin that can be used to backup the tenant schema before dropping.
- Allow using non-default databases for schemas using the new TENANT_DB_ALIAS config parameter.
- Add TENANT_BASE_SCHEMA configuration parameter for creating tenant schema from a pre-specified "default" base tenant schema.
- Add support for tenant models that are not serializable.
- Various updates to documentation.
- Update tests for Django 2 and Python 3.
Fixes
- Fix setup.py to reference new psycopg2-binary dependency. Fixes #174.
- Add support for creating tenants that share field names with domains. Fixes: #167.
- Use get_tenant instead of get_domain in DefaultTenantMiddleware to lookup tenant. Fixes: #154.
- Fix TENANT_LIMIT_SET_CALLS implementation to not rely on the cursor pointer changes. See: #157.