Project

General

Profile

« Previous | Next » 

Revision ad0757e7

Added by Thomas Noël almost 10 years ago

remove useless get_tenant_by_domain command (#6398)

View differences:

entrouvert/djommon/multitenant/management/commands/get_tenant_by_domain.py
1
from django.core.management.base import BaseCommand
2
from entrouvert.djommon.multitenant.middleware import TenantMiddleware
3

  
4
class Command(BaseCommand):
5
    help = "Create schemas"
6

  
7
    def handle(self, *args, **options):
8
        for arg in args:
9
            print TenantMiddleware.hostname2schema(arg)

Also available in: Unified diff