* Added Django 1.11 to Travis
- related to #435
- 😉 to tomturner/django-tenants#120
* Replace direct use of import_module by proper load_backend
Handle new 'django.db.backends.postgresql' name (Django 1.9)
* Fix 'default' already present in _fields in Django 1.11
* Fix not existing access to original_backend.DatabaseError (Django 1.11)
Removed exports because django.db.utils.DatabaseError and
django.db.utils.IntegrityError must be used instead.
This change must be stated in release notes.
* The signature of DatabaseWrapper._cursor has changed in Django 1.11
Use the public API
* Add missing allowed hosts for tests
* Don't override default user or blocks Unix socket DB connection
* Updated tox.ini for Django 1.11rc1
* Properly add '.test.com' to ALLOWED_HOSTS in test cases
* Internal tests don't use TenantTestCase so set allowed hosts manually
* Drop Django 1.9 support
Django 1.8 is still within LTS until the end of 2017.
* Added Django 1.11 to Travis
- related to #435
- 😉 to tomturner/django-tenants#120
* Replace direct use of import_module by proper load_backend
Handle new 'django.db.backends.postgresql' name (Django 1.9)
* Fix 'default' already present in _fields in Django 1.11
* Fix not existing access to original_backend.DatabaseError (Django 1.11)
Removed exports because django.db.utils.DatabaseError and
django.db.utils.IntegrityError must be used instead.
This change must be stated in release notes.
* The signature of DatabaseWrapper._cursor has changed in Django 1.11
Use the public API
* Add missing allowed hosts for tests
* Don't override default user or blocks Unix socket DB connection
* Updated tox.ini for Django 1.11rc1
* Properly add '.test.com' to ALLOWED_HOSTS in test cases
* Internal tests don't use TenantTestCase so set allowed hosts manually
* Drop Django 1.9 support
Django 1.8 is still within LTS until the end of 2017.
This way developers can install postgresql extensions in a dedicated schema and make it available globally.
Extensions can be installed to `public` schema too but the `public` is not always added to search_path, for example when running database migrations on --tenant apps.
Django connections are thread locals by default, it's safe to attach
attributes to the DatabaseWrapper, because those are thread safe.
Removed connection.get_schema() and connection.get_tenant() methods,
those were not very pythonic at all. Use connection.schema_name and
connection.tenant properties instead.
This module was failing to be imported. django.db.connection was
importing it, and the module in turn was importing django.db.connection.
Fix this by delaying this import till it's actually needed.