Bernardo Pires
cc437ed830
Remove line that says that contenttypes must be in TENANT_APPS. Fixes #369 .
2016-10-01 18:42:24 +02:00
Bernardo Pires
366cbe3264
Fixed auto drop schema test
2016-09-30 00:08:40 +02:00
Bernardo Pires
bfcd3103b8
Merge pull request #389 from bernardopires/revert-388-revert-385-master
...
Revert "Revert "Add UUIDField, some index introspections and fix migrations performance issue""
2016-09-29 23:58:58 +02:00
Bernardo Pires
84bd6d2ce8
Revert "Revert "Add UUIDField, some index introspections and fix migrations performance issue""
2016-09-29 23:58:49 +02:00
Bernardo Pires
dc442f41aa
Added test for auto dropping schema when tenant deleted. Closes #378 .
2016-09-29 23:42:32 +02:00
Bernardo Pires
97d42a1185
Merge pull request #388 from bernardopires/revert-385-master
...
Revert "Add UUIDField, some index introspections and fix migrations performance issue"
2016-09-29 23:29:15 +02:00
Bernardo Pires
2b0b52267b
Revert "Add UUIDField, some index introspections and fix migrations performance issue"
2016-09-29 23:28:07 +02:00
Bernardo Pires
5e4bc12af1
Merge pull request #385 from mcanaves/master
...
Add UUIDField, some index introspections and fix migrations performance issue
2016-09-29 20:58:37 +02:00
Mateu Cànaves
76d74388cc
Merge remote-tracking branch 'upstream/master'
2016-09-27 16:20:47 +02:00
Bernardo Pires
a57d3ef363
Merge pull request #386 from goodtune/feature/logging-filter
...
Add TenantContextFilter for schema/domain logging
2016-09-26 10:28:38 +02:00
Gary Reynolds
b62cbd7fba
Add TenantContextFilter to test project settings
2016-09-26 07:49:51 +10:00
Justin Wunderle
d9ce4ff99a
Add TenantContextFilter - put schema_name and domain_url in log records
...
Add a LOGGING configuration similar to the section below.
LOGGING = {
'filters': {
'tenant_context': {
'()': 'tenant_schemas.log.TenantContextFilter',
},
},
'formatters': {
'default': {
'format': '[%(schema_name)s:%(domain_url)s] '
'%(levelname)s %(asctime)s '
'%(message)s',
},
},
'handlers': {
'console': {
'class': 'logging.StreamHandler',
'formatter': 'default',
'filters': ['tenant_context'],
},
},
}
Your logging output will not look something like:
[example:example.com] DEBUG 13:29 django.db.backends: (0.001) SELECT ...
2016-09-26 07:40:35 +10:00
Mateu Cànaves
0d01d49146
Merge remote-tracking branch 'upstream/master'
...
# Conflicts:
# tenant_schemas/postgresql_backend/introspection.py
2016-09-23 12:47:24 +02:00
Mateu Cànaves
31a29a160e
- Added introspection support for UUIDField.
...
- Added index order introspection.
- Added index type introspection.
- Allowed introspection to work regardless of table owner.
- Added introspection for expression-based index.
2016-09-23 12:14:31 +02:00
Mateu Cànaves
ff232f278d
Remove unused imports
2016-09-23 12:04:54 +02:00
Bernardo Pires
eceab7a113
Merge pull request #384 from tonioo/master
...
Fix query performance when retrieving constraints (avoid full scan).
2016-09-23 10:48:07 +02:00
Antoine Nguyen
e431105a4b
Fix query performance (avoid full scan).
2016-09-23 09:41:38 +02:00
Mateu Cànaves
077b8c1b45
Style fix
2016-09-22 18:25:17 +02:00
Mateu Cànaves
aa2f36a3a8
Fix typo
2016-09-22 16:10:44 +02:00
Bernardo Pires
baf604644c
Added missing schema exception for Django 1.8
2016-09-21 21:14:35 +02:00
Bernardo Pires
b9d377094c
Merge pull request #366 from Fitblip/master
...
Make sure hostname is always lowered before match
2016-09-21 21:09:59 +02:00
Bernardo Pires
899bf60851
Merge pull request #332 from qdqmedia/upmaster
...
router multidb fix
2016-09-21 21:08:12 +02:00
Bernardo Pires
5d33237ba0
Merge pull request #321 from mikicz/ignore-missing-schemas
...
Raising an exception when a schema is missing, added an option to migrate_schemas to ignore this error
2016-09-21 21:07:00 +02:00
Bernardo Pires
65bf9dab07
Restored backwards compatibility
2016-09-21 21:01:51 +02:00
Bernardo Pires
90f8b147ad
Merge pull request #373 from richardstephens/master
...
fix compatibility issues with Django 1.10
2016-09-09 10:53:12 +02:00
Gary Reynolds
1427ccd5ad
Add Django 1.10 to list of tested versions
2016-08-24 18:14:36 +10:00
Richard Stephens
e8b7f2b992
fix compatibility issues with Django 1.10
2016-08-24 15:17:37 +10:00
Gary Reynolds
8ab23b7c88
Merge pull request #356 from mikicz/utils-docs
...
Add documentation for `tenant_schemas.utils`
Thanks to @mikicz for the contribution.
2016-08-24 07:21:18 +10:00
Gary Reynolds
9d7256639b
Merge pull request #362 from goodtune/fix-basetenantcommand
...
Fix BaseTenantCommand to correctly add arguments from COMMAND_NAME
2016-08-22 17:39:42 +10:00
Bernardo Pires
2bcacb672d
Merge pull request #361 from goodtune/issue-360
...
Fixes #360
2016-08-21 23:02:54 +02:00
Fitblip
f7d539f935
Make sure hostname is always lowered before match
...
There are some clients/libraries that won't call `.lower()` themselves on the url (unlike a standard web browser), so this should probably be done just to hedge against those cases.
LMK if you have any questions!
2016-07-22 17:58:16 -07:00
Lemr
687ec7e8df
Merge pull request #1 from qdqmedia/router_multidb_fix
...
check db wrapper subclases in dbrouter
2016-07-20 12:36:15 +02:00
Christian Felipe
13b9a1eeae
check db wrapper subclases in dbrouter
2016-07-20 12:20:00 +02:00
Gary Reynolds
515ef03e89
Fix BaseTenantCommand to correctly add arguments from COMMAND_NAME
...
A simple implementation class was not bringing the options through:
class Command(BaseTenantCommand):
COMMAND_NAME = 'collectstatic'
Once this patch is applied, the expected output and behaviour is exhibited.
2016-07-19 07:23:14 +10:00
Gary Reynolds
1a48f6c57b
Fix regression introduced in cb8862d
...
- path construction changed from domain_url to schema_name
2016-07-19 07:12:46 +10:00
Mikuláš Poul
d1e8484252
Wrote some docs for utils
2016-06-22 16:15:51 +02:00
Mikuláš Poul
c4129e540b
Merge branch 'master' into ignore-missing-schemas
...
Conflicts:
docs/use.rst
tenant_schemas/management/commands/migrate_schemas.py
2016-06-22 15:47:45 +02:00
Bernardo Pires
12775be744
Merge pull request #345 from AGASS007/master
...
removed lone print
2016-05-30 17:11:10 +02:00
Guillaume Andreu Sabater
a70979ed29
removed lone print
2016-05-30 17:05:19 +02:00
Bernardo Pires
7b4182aeca
Removing mentions to south
2016-05-30 00:12:17 +02:00
Bernardo Pires
ad12a74613
Removing mentions to south
2016-05-30 00:10:09 +02:00
Bernardo Pires
f1e322ae6c
Merge branch 'master' of github.com:bernardopires/django-tenant-schemas
2016-05-30 00:08:28 +02:00
Bernardo Pires
63ae15f1b8
Changed readthedocs.org to readthedocs.io
2016-05-30 00:08:23 +02:00
Bernardo Pires
07841b963e
Merge pull request #342 from goodtune/issue-289
...
Drop support for Django < 1.8
2016-05-20 11:50:30 +02:00
Gary Reynolds
cb8862d026
Remove Django < 1.8 compatibility
...
- resolves template loading in Django 1.8+ (thanks to @tomturner)
- removed code branches based on django.VERSION value
- updated documentation to remove details of removed functionality
Closes #289
2016-05-18 22:18:31 +10:00
Bernardo Pires
af786ad695
Merge pull request #340 from mskrajnowski/fix/introspection-get-constraints
...
Fix: missing schema-aware introspection methods
2016-05-18 11:00:54 +02:00
Marek Skrajnowski
388f4b6e83
Fix: missing schema-aware introspection methods
2016-04-18 15:33:45 +02:00
Bernardo Pires
6356587019
Merge pull request #337 from john2x/improve-exception-handling
...
Only send post_sync_signal on successful schema creation
2016-04-15 14:43:40 +02:00
John Louis Del Rosario
0be0b2d227
Only send post_sync_signal on successful schema creation
...
This avoids masking any errors that might happen in signal handlers.
2016-04-15 19:18:50 +08:00
Mikuláš Poul
5b90143035
Undid the change in getting the public schema name
2016-04-15 12:54:53 +02:00