Stephen J. Fuhry
0b5ae37000
override create_parser to allow custom args
...
this allows you to run custom stuff like:
python manage.py tenant_command createsuperuser --foo=bar
without optparse.OptionParser.disable_interspersed_args(),
the above call would fail because --foo is not explicitely
listed as a valid option in tenant_command
2013-09-09 15:23:23 -04:00
Stephen J. Fuhry
60762efab9
remove unused code
2013-09-09 15:14:32 -04:00
Stephen J. Fuhry
6caf655fe1
option to specify --tenant arg
2013-09-09 15:09:13 -04:00
Stephen J. Fuhry
8ac3919ce5
tenant_command wrapper around default commands
2013-09-09 14:10:26 -04:00
Stephen J. Fuhry
668fefb9de
Revert "create tenant user command"
...
This reverts commit 292dc515dc
.
2013-09-09 14:10:17 -04:00
Stephen J. Fuhry
292dc515dc
create tenant user command
2013-09-08 20:30:01 -04:00
Bernardo Pires Carneiro
6899a7d8f9
Merge pull request #63 from Walkman/master
...
Added ability to modify Tenant instance from tenant domain. Fixes #62
2013-09-03 22:36:59 -07:00
Walkman
c912c92d32
Added ability to modify Tenant instance from tenant domain. Fixes issue #62
2013-09-04 00:35:02 +02:00
Bernardo Pires
d8c6a23732
add missing import
2013-08-21 20:30:48 +02:00
Bernardo Pires
ad9a6079c5
Merge branch 'jjimenezlopez-master'
2013-08-21 20:29:43 +02:00
Bernardo Pires
7260bec92e
now using a cleaner solution using sender
2013-08-21 20:28:56 +02:00
Bernardo Pires
1d6805a632
Merge branch 'master' of git://github.com/jjimenezlopez/django-tenant-schemas into jjimenezlopez-master
2013-08-21 20:28:23 +02:00
Jose Jiménez
4c2d4f6d56
The drop_schema signal is being called even if we are deleting another object model (not a tenant). Added a check before try to drop the schema
2013-08-21 12:08:47 +02:00
Jose Jiménez
677de89556
Merge branch 'master' of https://github.com/jjimenezlopez/django-tenant-schemas
2013-08-21 12:07:40 +02:00
Jose Jiménez
d0da8fb111
The drop_schema signal is being called even if we are deleting another object model (not a tenant). Added a check before try to drop the schema
2013-08-21 12:07:18 +02:00
Jose Jiménez
84655a0fc7
The signal must be called just by TenantMixin delete action
2013-08-20 19:02:01 +02:00
Bernardo Pires Carneiro
268dfe4ddd
Merge pull request #59 from jjimenezlopez/master
...
Added post_delete signal to remove the tenant schema (optional)
2013-08-20 05:59:49 -07:00
Jose Jiménez
64e4c5081d
Added post_delete signal to remove the tenant schema. Just if auto_drop_schema is setted to True in the parent class.
2013-08-20 14:47:40 +02:00
Bernardo Pires
4cd08ea46f
Merge branch 'master' of https://github.com/bcarneiro/django-tenant-schemas
2013-08-14 20:46:38 +02:00
Bernardo Pires
e0e6817488
fixing typos
2013-08-14 20:46:23 +02:00
Bernardo Pires Carneiro
8f168f7656
Merge pull request #58 from timothyshaw/master
...
App labels now show up correctly if string is path to app.
2013-08-11 23:07:28 -07:00
Tim
1c7c707067
App labels now show up correctly if string is path to app.
2013-08-10 21:04:46 -05:00
Bernardo Pires
84cc0e371f
Merge branch 'master' of https://github.com/bcarneiro/django-tenant-schemas
2013-08-10 20:54:02 +02:00
Bernardo Pires
ae59736842
pep8 plus small changes to make tests clearer
2013-08-10 20:53:54 +02:00
Bernardo Pires Carneiro
b558d495cc
Merge pull request #56 from timothyshaw/patch-1
...
Changed "data" in test client get() and post() methods from None to {}
2013-08-07 11:31:32 -07:00
timothyshaw
ac45f54109
Changed "data" in test client get() and post() methods from None back to {}
...
"data" must not be None, or throws "TypeError: 'NoneType' object is not iterable" in Django's urlencode method.
2013-08-07 13:01:07 -05:00
Bernardo Pires Carneiro
0836709cf3
Merge pull request #55 from timothyshaw/patch-1
...
Check existence of PUBLIC_SCHEMA_URL_TOKEN before trying to access it.
2013-08-07 10:41:03 -07:00
timothyshaw
cae50d1e7e
Check existence of PUBLIC_SCHEMA_URL_TOKEN before trying to access it.
...
If using the tenant-schemas reverse method (or anything using clean_tenant_url), it should not assume PUBLIC_SCHEMA_URL_TOKEN is set. Throws AttributeError if not set.
2013-08-07 12:39:30 -05:00
Bernardo Pires
a0406f5e4d
removing unnecessary file
2013-06-29 10:54:26 +02:00
Bernardo Pires
7363e2bf11
Merge branch 'master' of https://github.com/bcarneiro/django-tenant-schemas
2013-06-28 15:02:35 +02:00
Bernardo Pires
56397fa16c
now using a much cleverer tenant URL routing
2013-06-28 15:01:48 +02:00
Bernardo Pires Carneiro
ee587d9ccf
Merge pull request #47 from MontmereLimited/master
...
Add note to not use port number in domain_url to docs
2013-06-19 00:35:19 -07:00
Stephen J. Fuhry
b862c0da01
don't use port number in domain_url
2013-06-18 22:47:52 -04:00
Bernardo Pires
d49f9f00a1
now always clearing content type cache
2013-06-11 14:35:01 +02:00
Bernardo Pires Carneiro
78976b784b
Merge pull request #41 from caioariede/south_compatibility
...
Fixing south compatiblity issues
2013-06-06 01:34:02 -07:00
Bernardo Pires
2365ed1689
middleware no longer requires URL to end in /
2013-06-05 18:38:15 +02:00
Caio Ariede
c1ca1f24d7
Sets SCHEMA, since South relies on it for database migrations.
2013-06-05 11:48:02 -03:00
Bernardo Pires
d80a1444ec
code should now be pep8 compliant
2013-06-03 22:00:44 +02:00
Bernardo Pires
d86b185c16
since the new method of syncing tenant and shared apps separately, some tests would not pass. this has been fixed, fixed issue #46 and #4
2013-06-03 21:54:51 +02:00
Bernardo Pires
0c287cbed0
clear content type cache before syncing db
2013-05-14 17:18:27 +02:00
Bernardo Pires
0b6b906a42
removing unnecessary line
2013-03-27 10:31:57 +01:00
Bernardo Pires
ef4f002534
fixed public apps also being migrated to tenant apps
2013-03-27 10:09:52 +01:00
Bernardo Pires
f4db705112
fixed schema_name parameter being ignored when syncing tenants
2013-03-16 10:57:37 +01:00
Bernardo Pires
9181581b86
TENANT_APPS and SHARED_APPS options no longer mandatory
2013-03-16 09:49:11 +01:00
Bernardo Pires
364509407f
added psycopg2 dependency
2013-03-16 09:48:45 +01:00
Bernardo Pires
a966133fd3
updating docs. updated setup.py and manifest.in to include docs properly
2013-03-06 08:21:28 +01:00
Bernardo Pires
ad1dbb86ab
significant changes on how migrate_schemas is done. it now migrates the appropiate apps according to SHARED_APPS and TENANT_APPS. sync_schemas and migrate_schemas now accept all options from their original commands. issue #37 fixed
2013-03-03 18:19:20 +01:00
Bernardo Pires
727e564b57
now calling the south-syncdb if south is present. fixed issue #36
2013-03-03 15:25:28 +01:00
Bernardo Pires
e5b84dc86c
updating docs again
2013-03-03 13:50:51 +01:00
Bernardo Pires
42f863e3e3
updating docs to solve issue #35
2013-03-03 13:46:23 +01:00