Projet

Général

Profil

0002-management-commands-tenant_command.py-add-help-messa.patch

Christophe Siraut, 11 avril 2018 16:14

Télécharger (1,36 ko)

Voir les différences:

Subject: [PATCH 2/5] management/commands/tenant_command.py: add help message
 to force_job

 hobo/multitenant/management/commands/tenant_command.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
hobo/multitenant/management/commands/tenant_command.py
43 43
        args_parser.add_argument("--all-tenants", help="apply command to all tenants",
44 44
                                 action='store_true')
45 45
        args_parser.add_argument("-d", "--domain", dest="domain_name", help="specify tenant domain name")
46
        args_parser.add_argument('--force-job', dest='force_job', action='store_true')
46
        args_parser.add_argument(
47
            '--force-job', dest='force_job', action='store_true',
48
            help='Run command even if DISABLE_CRON_JOBS is set' )
47 49
        args_namespace, args = args_parser.parse_known_args(argv)
48 50

  
49 51
        if not args_namespace.force_job and getattr(settings, 'DISABLE_CRON_JOBS', False):
50
-