Projet

Général

Profil

« Précédent | Suivant » 

Révision bb762ce4

Ajouté par Thomas Noël il y a environ 9 ans

tenants in TENANT_BASE/hostname (#6398)

Voir les différences:

entrouvert/djommon/multitenant/management/commands/deploy.py
22 22

  
23 23
        call_command('create_tenant', hostname)
24 24

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

  

Formats disponibles : Unified diff