Bug #6388
compatibilité 1.7 (multitenant)
Start date:
30 January 2015
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
Description
Pour la partie multitenant, il y a des nouvelles choses dans django-tenant-schema, notamment au niveau de la commande "migrate_schema" qui utilise le migrate de django 1.7. Et c'est mieux.
Il faut merger nos commandes avec cette nouvelle version ; et packager la nouvelle release de django-tenant-schema, et voir si ça casse pas tout au passage.
Files
Associated revisions
History
Updated by Thomas Noël over 9 years ago
- File migrate_schemas2.py migrate_schemas2.py added
Une tentative de Benjamin
Updated by Thomas Noël over 9 years ago
Bon, il semble que d'autres choses ont bougé dans d-t-s
Traceback (most recent call last): File "./manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 377, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/dist-packages/entrouvert/djommon/multitenant/management/commands/migrate_schemas2.py", line 25, in run_from_argv super(MigrateSchemasCommand, self).run_from_argv(argv) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 288, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 338, in execute output = self.handle(*args, **options) File "/usr/lib/python2.7/dist-packages/entrouvert/djommon/multitenant/management/commands/migrate_schemas2.py", line 31, in handle if self.sync_public and not self.schema_name: AttributeError: 'MigrateSchemasCommand' object has no attribute 'schema_name'
Updated by Thomas Noël over 9 years ago
- File 0001-migrate_schemas-use-django-1.7-if-available.patch 0001-migrate_schemas-use-django-1.7-if-available.patch added
- Status changed from Nouveau to En cours
- Assignee set to Thomas Noël
Voici un patch principalement sur migrate_schemas. Il suppose que django-tenant-schema est la version master (1.5.x).
migrate_schemas: use django 1.7 if available (#6388)