Gary Reynolds
8941fb1cd8
Fix spelling mistake in test cases
2017-01-26 01:55:33 +11:00
Gary Reynolds
b24faa0a73
Add middlewares to documentation (commented)
2017-01-26 01:44:55 +11:00
Gary Reynolds
71804949d7
Update tests and fix bug in DefaultTenantMiddleware.get_tenant
2017-01-26 01:41:00 +11:00
Alexander van Eck
e1fda76f50
Updated documentation to reflect changes
2017-01-25 15:16:34 +01:00
Alexander van Eck
88156be136
Added DefaultSchemaTenantMiddleware and created a method for get_tenant so it can be easily overwritten. Updated tests for the new middleware class
2017-01-25 15:08:11 +01:00
Gary Reynolds
5f169a276c
Alternative implementation without introducing new settings.
...
Create a new subclass of TenantMiddleware which handles the fallback scenario.
2017-01-26 00:53:36 +11:00
Alexander van Eck
36d4966a03
Renamed DEFAULT_SCHEMA to DEFAULT_SCHEMA_NAME and added with.settings instead of overwriting settings in a test.
2017-01-25 14:32:51 +01:00
Alexander van Eck
021e667231
Added Default_Schema settings to the install.rst documentation
2017-01-01 11:38:19 +01:00
Alexander van Eck
1b3cd3e79b
Changed setting name to DEFAULT_SCHEMA to be more in line with django.
2017-01-01 11:38:19 +01:00
Alexander van Eck
1b797d5430
Added tests for the SHEMA_DEFAULT setting in TenantMiddleware
2017-01-01 11:38:19 +01:00
Adam Ringwood
ab5c7088a0
Patching default schema setting in.
2017-01-01 11:38:19 +01:00
Bernardo Pires
1a83c52221
4th attempt at travis and pypi
2017-01-01 08:15:19 +01:00
Bernardo Pires
6e6c8673ef
Third attempt at travis autocommit to pypi
2017-01-01 08:07:09 +01:00
Bernardo Pires
eb0f6cf660
Second attempt for travis auto deploy to pypi
2017-01-01 08:04:33 +01:00
Bernardo Pires
03d1c97821
Trying again the travis auto commit to pypi
2017-01-01 07:09:39 +01:00
Gary Reynolds
76bd651707
Try dropping wheel dist to push to PyPI.
2016-12-18 00:57:59 +11:00
Gary Reynolds
d091d2e356
Update apps.py
...
Populate `app_configs` if it is `None`.
2016-12-10 14:35:45 +11:00
Gary Reynolds
73a0495267
Update .travis.yml to trigger deploy on tags
...
Wrapped the encrypted password to fit on narrow displays, including
github.com
2016-12-01 06:24:49 +11:00
Bernardo Pires
72b828ad38
Fixes #411
2016-11-28 23:51:28 +01:00
Gary Reynolds
e941200413
Merge pull request #407 from goodtune/version-support-statement
...
Document a position on supported versions of Django & PostgreSQL
2016-11-19 00:37:22 +11:00
Gary Reynolds
835c49b930
Update README.rst and setup.py
...
- update package classifiers to make the pyversions badge work
- add badges for PostgreSQL versions supported
2016-11-11 17:26:23 +11:00
Gary Reynolds
2190883129
Document a position on supported versions of Django & PostgreSQL
...
- policy for Django (all currently supported versions)
- policy for PostgreSQL (minimum version of latest Django version)
Upped the link to PostgreSQL's schema documentation to match new minimum (9.2).
2016-11-11 17:26:23 +11:00
Gary Reynolds
7d4428cc77
Merge pull request #402 from goodtune/issue-302
...
Refactor ImproperlyConfigured to system check framework
2016-11-11 17:24:06 +11:00
Gary Reynolds
7d2d8e8db5
Query the apps registry in test cases
...
The override_settings module looks after revising the cache, so no need to
build our own - the settings.INSTALLED_APPS was holding unexpected values
(strangely only in Python 3.5, though) but this should give the expected
outcome every time.
2016-11-11 17:17:08 +11:00
Gary Reynolds
d935526c47
Flatten the app_configs to an INSTALLED_APPS list equivalence
2016-11-11 17:10:24 +11:00
Gary Reynolds
6df7a1c019
Adjust to check that tenant_schemas is listed first in INSTALLED_APPS
...
The Django documentation suggests that the correct way to overload
management commands with the same name is to load them earlier in the
INSTALLED_APPS list.
2016-11-11 07:57:14 +11:00
Gary Reynolds
ea95f3f7a4
Refactor ImproperlyConfigured to system check framework
...
- ensure TENANT_APPS is defined in settings.py
- ensure TENANT_MODEL is defined in settings.py
- ensure TenantSyncRouter appears in DATABASE_ROUTERS
- ensure public schema and any existing tenant schemas are not listed in PG_EXTRA_SEARCH_PATHS
- raise error when TENANT_APPS is empty
- issue warning when 'tenant_schemas' is not the last item in INSTALLED_APPS
- issue warning when items in TENANT_APPS are not in INSTALLED_APPS
- add checks for SHARED_APPS
- add test cases for the best_practice system check
- update install documentation which previously suggested concatenation
- fix import path of get_public_schema_name
- fix failing test case for TenantContextFilter
- update tox.ini
- add .travis.yml
- PEP8 fixes
2016-11-11 07:57:14 +11:00
Gary Reynolds
acb14ec5ce
Add Travis CI badge to README
2016-11-11 07:34:01 +11:00
Gary Reynolds
206317ade2
Merge pull request #406 from jprashanth/indexes_introspection_pg96
...
Updated indexes ordering introspection for PostgreSQL 9.6
2016-11-11 06:24:17 +11:00
Prashanth Jonnala
9ba410f388
Updated indexes ordering introspection for PostgreSQL 9.6
2016-11-10 11:25:23 -05:00
Gary Reynolds
9b79674ff2
Merge pull request #404 from goodtune/travis-ci
...
Add travis-ci.org integration
2016-11-10 11:56:17 +11:00
Gary Reynolds
ca7536be55
Add travis-ci.org integration
2016-11-10 11:53:50 +11:00
Gary Reynolds
55d51b2175
Merge pull request #403 from arkanus/python3
...
Modify tests to run and pass with python 3
2016-11-10 10:58:52 +11:00
Marcos Sánchez
6c2533cd54
Modify tests to run and pass with python 3
2016-11-08 23:21:35 -03:00
Bernardo Pires
a43488ac04
Merge pull request #399 from farooqaaa/master
...
Removed quotes from username value for createsuperuser command
2016-10-22 07:44:11 +02:00
Farooq Azam
529361a85f
Removed quotes from username value for createsuperuser command
2016-10-21 16:26:02 +05:00
Bernardo Pires
fe35aeb46d
Merge pull request #397 from anyeone/master
...
fixed error causing createsuperuser to fail for later versions of django
2016-10-08 16:11:05 +02:00
anye
8774cd499e
removed comment per request
2016-10-07 14:28:55 -05:00
anye
4fb28368f6
fixed error that was causing createsuperuser to fail for later versions of django
2016-10-07 12:49:44 -05:00
Bernardo Pires
ba73de494a
Merge pull request #390 from filipeximenes/fast-testcase
...
Added FastTenantTestCase and its documentation
2016-10-04 23:03:47 +02:00
Filipe Ximenes
016e2682dd
improving documentation texto for FastTenantTestCase
2016-10-04 17:34:46 -03:00
Bernardo Pires
906160f357
Update use.rst
2016-10-03 22:44:36 +02:00
Bernardo Pires
805d58a8fb
Updated utils docs
2016-10-03 22:44:00 +02:00
Bernardo Pires
69f05c96ed
Merge pull request #393 from bernardopires/revert-392-utils-docs
...
Revert "Documenting 'utils' module"
2016-10-03 22:38:53 +02:00
Bernardo Pires
a4ad7980b9
Revert "Documenting 'utils' module"
2016-10-03 22:38:46 +02:00
Bernardo Pires
7ddba7a621
Merge pull request #392 from filipeximenes/utils-docs
...
Added documentation for 'utils' module
2016-10-03 22:24:35 +02:00
Filipe Ximenes
fb2ec81d0f
documenting 'utils' module
2016-10-03 11:22:06 -03:00
Filipe Ximenes
a3b23d5f3a
adding example on how to import FastTenantTestCase
2016-10-03 10:27:15 -03:00
Filipe Ximenes
e9d90b6cd7
adding FastTenantTestCase and it's documentation
2016-10-03 10:24:09 -03:00
Bernardo Pires
0a9583e954
Now listing the correct context processor in the docs. Fixes #367 .
2016-10-01 18:44:31 +02:00