0003-management-commands-tenant_command.py-notify-task-di.patch
hobo/multitenant/management/commands/tenant_command.py | ||
---|---|---|
18 | 18 |
help = "Wrapper around django commands for use with an individual tenant" |
19 | 19 |
args = '<other_command>' |
20 | 20 | |
21 |
def run_from_argv(self, argv): |
|
21 |
def run_from_argv(self, argv, **kwargs):
|
|
22 | 22 |
""" |
23 | 23 |
Changes the option_list to use the options from the wrapped command. |
24 | 24 |
Adds schema parameter to specify which schema will be used when |
... | ... | |
49 | 49 |
args_namespace, args = args_parser.parse_known_args(argv) |
50 | 50 | |
51 | 51 |
if not args_namespace.force_job and getattr(settings, 'DISABLE_CRON_JOBS', False): |
52 |
if kwargs.get('verbosity') > 1: |
|
53 |
print('Command %s is ignored because DISABLE_CRON_JOBS is set' |
|
54 |
% app_name) |
|
52 | 55 |
return |
53 | 56 | |
54 | 57 |
if args_namespace.all_tenants: |
55 |
- |