Gary Reynolds
57d53c955d
Add logging in utils.django_in_test_mode function.
2016-01-19 17:51:55 +11:00
Gary Reynolds
1743b4867b
Add LOGGING configuration to test project
2016-01-19 17:51:55 +11:00
Gary Reynolds
9fe1d657f3
Add tox.ini
2016-01-19 17:51:55 +11:00
Bernardo Pires
6f2afa0751
Updated documentation to remind users to create migrations for the tenant model
2015-12-28 17:17:49 +01:00
Bernardo Pires
3b0ec772dc
Fixed test cases for Django 1.9
2015-12-28 17:13:13 +01:00
Bernardo Pires
e4814e483d
Added missing tenant tutorial migrations.
2015-12-28 16:59:56 +01:00
Bernardo Pires
3c368ab0d7
Merge pull request #313 from bjersey/feature/fix-search-path-in-rollback
...
must set search_path again after a transaction rollback
2015-12-25 10:16:56 +01:00
Brian Lao
94d325bcf4
must set search_path again after a transaction rollback
2015-12-17 15:16:19 -05:00
Krzysztof Nazarewski
d337ce663b
moved app_labels() test from docstring to separate TestCase and extended it,
2015-11-16 16:41:14 +01:00
Krzysztof Nazarewski
c61aca19e4
Added AppConfig handling to tenant_schemas.utils.app_labels
2015-11-10 15:18:16 +01:00
Bernardo Pires
376746f33c
Merge pull request #288 from shabda/patch-1
...
optimize docs for readability
2015-10-03 17:48:34 +02:00
Shabda Raaj
1e075ef7cc
optimize docs for readability
2015-10-03 19:13:52 +05:30
Bernardo Pires
77c91762c0
Merge pull request #287 from shabda/patch-1
...
maintain order of installed_apps
2015-10-02 14:05:45 +02:00
Shabda Raaj
6fd645416b
maintain order of installed_apps
2015-10-02 16:11:40 +05:30
Bernardo Pires
ed1d10039c
pep8
2015-09-19 12:54:59 +02:00
Bernardo Pires
e8649f3b9b
Now checking if app_label is instance of BaseModel instead of not str. Fixes #285 .
2015-09-19 12:53:18 +02:00
Bernardo Pires
85ef2f4117
Merge pull request #282 from regolith/master
...
Update allow_migrate() for Django 1.8. Fixes #231 (in 1.8)
2015-09-04 17:43:07 +02:00
Justin Wunderle
d19de3c315
Update allow_migrate() for Django 1.8. Fixes #231 (in 1.8)
...
Django 1.8 will call it for RunPython and RunSQL operations, but we needed to update the method signature to opt-in. (those operations have no model)
See: https://docs.djangoproject.com/en/1.8/releases/1.8/#deprecated-signature-of-allow-migrate
2015-09-03 17:54:14 -04:00
Bernardo Pires
b9cf3cb906
Merge pull request #278 from honur/master
...
make migrate_schemas work for django 1.8
2015-08-23 18:00:06 +02:00
hov
378e4434ca
make migrate_schemas work for django 1.8
2015-08-23 11:09:00 +04:00
Bernardo Pires
5e5df125d4
Merge branch 'master' of github.com:bernardopires/django-tenant-schemas
2015-08-02 11:25:43 +02:00
Bernardo Pires
d1d146089a
Tests and migrate_schemas now function correctly from Django 1.6 to 1.8
2015-08-02 11:25:34 +02:00
Bernardo Pires
b3ebc39bfb
Merge pull request #274 from goodtune/list-tenants
...
Added list_tenants management command
2015-08-02 10:37:17 +02:00
Bernardo Pires
a2f1f6f740
Merge branch 'master' of github.com:bernardopires/django-tenant-schemas
2015-08-02 10:36:13 +02:00
Bernardo Pires
32d4f848b6
Fixed migrate_schemas not working on Django1.7 and older. Fixes #273 and #272 .
2015-08-02 10:35:55 +02:00
Gary Reynolds
77ef08e429
Wrap dumpdata in tenant_command - was fixed in 5cdc7ef
.
2015-08-01 23:14:36 +10:00
Gary Reynolds
54d90b4597
Add list_tenants management command.
...
Useful for scripting to be able to invoke other management commands for all tenants.
2015-08-01 21:46:10 +10:00
Bernardo Pires
0b15c16ae7
Merge pull request #269 from goodtune/disallowedhost
...
Added middleware that raises DisallowedHost instead of 404
2015-08-01 13:19:41 +02:00
Gary Reynolds
3068254f71
Update documentation as per Bernard's suggestion.
2015-08-01 20:02:51 +10:00
Bernardo Pires
6a3a3d7a18
Updated documentation to reflect current stage of migrate_schemas and sync_schemas.
2015-07-31 16:12:22 +02:00
Bernardo Pires
01b8ba54f7
Minor doc fixes
2015-07-31 16:02:36 +02:00
Bernardo Pires
29c9a3957b
Add note about django-debug-toolbar. Fixes #222 .
2015-07-31 15:59:19 +02:00
Gary Reynolds
088862781c
Retain the old behaviour and add alternative middleware for DisallowedHost.
...
Instead of introducing a new setting to control this, the developer can select
which exception they want raised by choosing which middleware to load instead -
it already needs to be configured in the settings.py anyway.
2015-07-31 23:26:17 +10:00
Bernardo Pires
ea3edf4851
Tests now respect verbosity. Thanks @samgre. Fixes #245 .
2015-07-30 23:49:21 +02:00
Bernardo Pires
5bb4ccfaef
Raised minimum supported django version to 1.6.0.
2015-07-30 23:23:26 +02:00
Bernardo Pires
5cdc7eff68
Fixed tenant_command not wrapping commands properly in django 1.7+. Fixes #267 .
2015-07-30 23:16:54 +02:00
Bernardo Pires
e7a2e878f6
pep8
2015-07-30 23:15:23 +02:00
Bernardo Pires
3c449def2b
Added test for tenant_command.
2015-07-30 22:48:39 +02:00
Bernardo Pires
88651600b1
Fixed migrations when limiting set search_path calls. Thanks @bjersey, @philfriesen, @bjs987. Fixes #253 .
2015-07-30 13:12:02 +02:00
Bernardo Pires
4654fc342d
Merge branch 'master' of github.com:bernardopires/django-tenant-schemas
2015-07-30 13:06:46 +02:00
Bernardo Pires
ce73fa9795
Added support for PostGIS. Thanks @tecnosegugio, @george-silva. Fixes #240 .
2015-07-30 13:06:37 +02:00
Bernardo Pires
af56aaba00
pep8
2015-07-30 13:05:25 +02:00
Bernardo Pires
68323c5a39
Merge pull request #268 from carlosfunk/cache-key-helpers
...
Cache key helper functions
2015-07-30 12:34:58 +02:00
Bernardo Pires
6722b342e7
Merge pull request #255 from markkennedy/patch-1
...
Add example usage of BaseTenantCommand
2015-07-30 12:32:37 +02:00
Bernardo Pires
a16661be38
Merge pull request #249 from goodtune/faketenant
...
Prevent template loader operating when FakeTenant is the active connecti...
2015-07-30 12:30:46 +02:00
Bernardo Pires
43fde4c7bd
Merge branch 'master' of github.com:bernardopires/django-tenant-schemas
2015-07-30 12:08:40 +02:00
Bernardo Pires
dee48dc714
Refactored migrate schemas.
2015-07-30 12:07:46 +02:00
Bernardo Pires
52aa06440f
pep8 changes
2015-07-30 11:35:54 +02:00
Bernardo Pires
3fd5332c8f
Fixed deprecated warning on importlib.
2015-07-30 11:19:08 +02:00
Bernardo Pires
da5d643fa2
Added support to Django 1.8. Thanks @tomturner.
2015-07-30 11:14:33 +02:00