Commit Graph

611 Commits

Author SHA1 Message Date
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
Bernardo Pires 6fe55baa57 Merge pull request #305 from nazarewk/appconfigs
Added AppConfig handling to tenant_schemas.utils.app_labels
2016-04-15 12:36:30 +02:00
Mikuláš Poul bb536708c4 Removed the --ignore-missing-schemas option, raising a different exception 2016-04-07 17:23:41 +02:00
Martin Samsula 4d95f7a119 router multidb fix 2016-03-31 11:09:42 +02:00
Bernardo Pires ffc8e09ca9 Merge branch 'master' into pr315 2016-03-28 16:20:09 +02:00
Bernardo Pires 3d0e7463f3 removed logging from utils 2016-03-28 16:17:23 +02:00
Bernardo Pires 14ff595ebf Merge branch 'master' of github.com:bernardopires/django-tenant-schemas 2016-03-28 12:09:47 +02:00
Bernardo Pires af631d5fe6 Fixed the RemovedInDjango110Warning related to the url patterns from the tutorial. Thanks @mikicz. Fixes #320 2016-03-28 12:09:38 +02:00
Bernardo Pires 3d3c8998c4 Merge pull request #327 from ArtProcessors/fix-reverse-19
fix `reverse` for Django 1.9
2016-03-28 12:00:07 +02:00
Jacob Haslehurst f8f96b169f remove unused imports 2016-03-23 12:13:30 +11:00
Jacob Haslehurst 0be38470e5 re-add `prefix` argument to `reverse` 2016-03-23 12:13:05 +11:00
Jacob Haslehurst 2e58510b55 explicitly pass kwargs to django reverse 2016-03-21 11:43:46 +11:00
Jacob Haslehurst c8921aa571 fix `reverse` for Django 1.9
`reverse` no longer accepts the `prefix` argument
https://docs.djangoproject.com/en/1.9/ref/urlresolvers/#reverse
2016-03-18 15:08:30 +11:00
Mikuláš Poul 538fdf48f1 Raising an exception when a schema is missing, added an option to migrate_schemas to ignore this error 2016-02-20 21:17:39 +01:00
Gary Reynolds d54c947f70 Documentation update. 2016-01-21 07:28:44 +11:00
Gary Reynolds 02517f9a4d Set migration verbosity so as to not spam the output. 2016-01-19 17:51:55 +11:00
Gary Reynolds 920a884a44 Update dts_test_project.settings to work with codeship CI
https://codeship.com/documentation/databases/postgresql/#django
2016-01-19 17:51:55 +11:00
Gary Reynolds 21048e3333 Update TenantCommandTest.test_command to run under Django 1.8 and 1.9. 2016-01-19 17:51:55 +11:00
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