Commit Graph

225 Commits

Author SHA1 Message Date
Bernardo Pires 98f7067f41 readded backwards compatibility (get_schema_name and get_tenant) 2013-11-15 09:01:17 +01:00
Bernardo Pires 36b22bc649 Resolved merge conflicts on docs regarding tenant and schema_name 2013-11-15 09:00:12 +01:00
Bernardo Pires f7ee9920fb Merge branch 'master' of github.com:bernardopires/django-tenant-schemas 2013-11-15 07:57:10 +01:00
Walkman 9664056bce Removed unneccesary PGThread.
Django connections are thread locals by default, it's safe to attach
attributes to the DatabaseWrapper, because those are thread safe.
Removed connection.get_schema() and connection.get_tenant() methods,
those were not very pythonic at all. Use connection.schema_name and
connection.tenant properties instead.
2013-11-15 00:50:05 +01:00
Bernardo Pires 75dd212b3f Merge pull request #91 from aniav/django-1.4
Introduce Django 1.4 compatibility
2013-11-11 00:27:50 -08:00
Anna Warzecha 862a7c0f2b Introduce Django 1.4 compatibility 2013-11-11 01:02:05 +01:00
Bernardo Pires 447cef034e fixed small mistakes on the docs 2013-11-03 10:17:29 +01:00
Bernardo Pires d3e4839b4f fixed pypi badges 2013-11-03 10:13:24 +01:00
Bernardo Pires c5004716c8 added missing setting PUBLIC_SCHEMA_NAME to docs 2013-11-03 10:09:24 +01:00
Bernardo Pires c2aa8e66b3 now using proper codeblocks for docs 2013-11-03 10:03:37 +01:00
Bernardo Pires ff6932bdaa added pypi badges 2013-11-03 09:59:13 +01:00
Bernardo Pires e5ffdad251 updated and fixed docs styling 2013-11-03 09:54:30 +01:00
Bernardo Pires 6407150709 readded missing transaction.commit_unless_managed() for custom sql 2013-10-30 08:06:37 +01:00
Bernardo Pires 16cd27711e fixed tenant sync failing because row doesnt exist 2013-10-30 08:06:19 +01:00
Bernardo Pires 65571f2123 added missing examples docs, fixed pip 2013-10-24 09:05:27 +02:00
Bernardo Pires 44724fd71d Merge branch 'master' of https://github.com/bcarneiro/django-tenant-schemas 2013-10-20 19:32:12 +02:00
Bernardo Pires 1c2a40cd81 Merge pull request #84 from Walkman/patch-1
Ignore IntelliJ hidden files
2013-10-20 05:34:01 -07:00
Walkman 73757d1511 Removed IntelliJ files 2013-10-20 14:26:49 +02:00
Kiss György 75cdb0f1bd Ignore IntelliJ hidden files 2013-10-20 14:24:03 +02:00
Bernardo Pires 3cf609fd8c fixed setup.py wrong path to examples 2013-10-20 13:43:18 +02:00
Bernardo Pires a9bae38aff updated docs regarding example project 2013-10-20 13:41:46 +02:00
Bernardo Pires 4bbaf6fc9e added first example: an interactive tutorial for this app 2013-10-20 13:32:30 +02:00
Bernardo Pires a9241f2777 small refactoring, remove useless command, only create tenant at the end 2013-10-20 13:32:18 +02:00
Bernardo Pires a5a3438161 updated docs 2013-10-20 10:34:45 +02:00
Bernardo Pires f48a4512b0 removed deprecated PUBLIC_SCHEMA_URL_TOKEN 2013-10-20 10:09:42 +02:00
Bernardo Pires 5e43d4cc33 moved post delete listener to delete method, #81 2013-10-18 11:25:45 +02:00
Bernardo Pires 556b085c5b Merge branch 'master' of https://github.com/bcarneiro/django-tenant-schemas 2013-10-18 10:50:12 +02:00
Bernardo Pires 04f0de9165 fixed type, fixes #83 2013-10-18 10:49:53 +02:00
Bernardo Pires 3aaea31821 Merge pull request #82 from MontmereLimited/master
move version directly into setup.py
2013-10-14 22:39:51 -07:00
Stephen J. Fuhry 3d7c9003e0 move version directly into setup.py
because if you are doing stuff in __init__.py, setup.py will try to load
it on install, which can cause some problems when resources aren't
available on an initial install
2013-10-14 16:13:42 -04:00
Bernardo Pires ce920d0779 moved signals to listeners.py, imported from models. fixes #81 2013-10-14 21:59:05 +02:00
Bernardo Pires 8715f92ae3 Merge pull request #80 from MontmereLimited/exception-swallow
remove redundant re-raising of swallowed exception
2013-10-14 12:28:42 -07:00
Stephen J. Fuhry 99a71c5db8 remove redundant re-raising of swallowed exception 2013-10-14 15:14:58 -04:00
Bernardo Pires 7cc2c194b1 Merge pull request #79 from Walkman/fix_delete
Fixes #77
2013-10-14 11:01:58 -07:00
Walkman 2ee67de1ff Fixes #77
For details see:
http://www.quora.com/Django-web-framework/When-using-Djangos-signals-where-should-the-code-that-registers-a-new-receiver-function-go
2013-10-14 18:14:43 +02:00
Bernardo Pires 92615d0b5e added small deployment guide with apache to the docs 2013-10-09 19:46:33 +02:00
Bernardo Pires 8a3ee48638 fixing the mess i did 2013-10-04 12:59:45 +02:00
Bernardo Pires 4be1f0889f pep8 2013-10-04 12:49:29 +02:00
Bernardo Pires 4925746088 updated string message when saving tenant outside public 2013-10-04 12:45:40 +02:00
Bernardo Pires f16af88a7a Merge pull request #74 from Walkman/restrict_delete
Restrict delete to public or current schema the same way as in case of save
2013-10-04 03:45:09 -07:00
Bernardo Pires aaf8f0126a fixed post delete receiver not working properly 2013-10-04 12:33:00 +02:00
Walkman 3fdc15035f Restrict delete to public or current schema the same way as in case of save 2013-10-03 22:39:59 +02:00
Bernardo Pires 07d2534fe7 Merge pull request #68 from Walkman/refactorings
Refactored commands, should not affect funcionality
2013-09-27 05:19:07 -07:00
Walkman b955ef198f Missing statement, input did not worked on Python 2.7 2013-09-26 01:05:44 +02:00
Walkman 12bef533a2 Small fix in migrate_schemas command 2013-09-25 23:25:42 +02:00
Walkman 5933873174 Move SyncCommon to the right place 2013-09-25 22:55:42 +02:00
Walkman 4ec56fde04 Merge branch 'master' into refactorings 2013-09-25 22:46:10 +02:00
Bernardo Pires e2db89d3f7 Merge pull request #71 from Walkman/update_docs
Added section describing different WSGI setup, fixed small issues with docs.
2013-09-23 22:40:53 -07:00
Walkman 2ab5972b5e Added section describing different WSGI setup, fixed small issues with docs. 2013-09-24 00:56:25 +02:00
Bernardo Pires 92d505eb3a refactored tenant_command, wrapped createsuperuser 2013-09-22 17:58:58 +02:00