Project

General

Profile

Bug #6388

compatibilité 1.7 (multitenant)

Added by Thomas Noël about 9 years ago. Updated about 9 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
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

migrate_schemas2.py (2.84 KB) migrate_schemas2.py Thomas Noël, 30 January 2015 04:23 PM
0001-migrate_schemas-use-django-1.7-if-available.patch (15.3 KB) 0001-migrate_schemas-use-django-1.7-if-available.patch Thomas Noël, 03 February 2015 11:34 AM

Associated revisions

Revision 1f642209 (diff)
Added by Thomas Noël about 9 years ago

migrate_schemas: use django 1.7 if available (#6388)

History

#1

Updated by Thomas Noël about 9 years ago

Une tentative de Benjamin

#2

Updated by Thomas Noël about 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'
#3

Updated by Thomas Noël about 9 years ago

Voici un patch principalement sur migrate_schemas. Il suppose que django-tenant-schema est la version master (1.5.x).

#4

Updated by Thomas Noël about 9 years ago

  • Patch proposed changed from No to Yes
#5

Updated by Thomas Noël about 9 years ago

  • Status changed from En cours to Solution déployée
#6

Updated by Thomas Noël about 9 years ago

  • Status changed from Solution déployée to Fermé

Also available in: Atom PDF