Open sshahbaj opened 4 years ago
Looks like adding the requires_system_checks
flag and setting it to False
in tenant_command.py
fixes the problem.
class Command(InteractiveTenantOption, BaseCommand):
help = "Wrapper around django commands for use with an individual tenant"
requires_system_checks = False
def handle(self, command, schema_name, *args, **options):
tenant = self.get_tenant_from_options_or_interactive(
schema_name=schema_name, **options
)
connection.set_tenant(tenant)
call_command(command, *args, **options)
Is this issue caused due to #613 ?
Ok, I downgraded to Django v2.2.12 and django-tenant-schemas to 1.9.0 and it also works.
@sshahbaj where I found this file ?
Environment:
I'm having trouble executing the shell command for a specific schema. Here is the command that I'm trying to run:
And I'm getting this error: