Projet

Général

Profil

« Précédent | Suivant » 

Révision c1f66c77

Ajouté par Serghei Mihai (congés, retour 15/05) il y a plus de 9 ans

tenant object passed to context manager.
"deploy tenant" method should be called with three parameters

Closes #6340

Voir les différences:

entrouvert/djommon/multitenant/management/commands/deploy.py
23 23
        call_command('create_tenant', hostname)
24 24

  
25 25
        tenant_name = TenantMiddleware.hostname2schema(hostname)
26
        with tenant_context(tenant_name):
27
            self.deploy_tenant(environment, service)
26
        tenant = TenantMiddleware.get_tenant_by_hostname(tenant_name)
27
        with tenant_context(tenant):
28
            self.deploy_tenant(environment, service, options)
28 29

  
29
    def deploy_tenant(self, options, environment, service):
30
    def deploy_tenant(self, environment, service, options):
30 31
        pass

Formats disponibles : Unified diff