From: Guillaume Pellerin Date: Thu, 13 Jan 2022 16:59:53 +0000 (+0100) Subject: add args X-Git-Tag: 2.5.1~15^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cd1fc1dc5857b85e8820fbc1345d7c262fb7441f;p=teleforma.git add args --- diff --git a/teleforma/management/commands/teleforma-deactivate-students.py b/teleforma/management/commands/teleforma-deactivate-students.py index e9fa274f..02e87b70 100644 --- a/teleforma/management/commands/teleforma-deactivate-students.py +++ b/teleforma/management/commands/teleforma-deactivate-students.py @@ -29,6 +29,9 @@ class Command(BaseCommand): help = "Deactivate student user for a given period" language_code = 'fr_FR' + def add_arguments(self, parser): + parser.add_argument('args', nargs='*') + def handle(self, *args, **options): log_file = args[-1] period_name = args[-2]