From 3f0efad5ee4069d5387e742f346f8d782607fa96 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 22 Jan 2017 12:23:11 +0100 Subject: Correction d'un crash se provoquant lors de la lecture des arguments de la commande --- management/commands/timetables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'management/commands') diff --git a/management/commands/timetables.py b/management/commands/timetables.py index 9882759..6412b7e 100644 --- a/management/commands/timetables.py +++ b/management/commands/timetables.py @@ -52,7 +52,7 @@ class Command(BaseCommand): if options["year"] is None and year is None: year = timezone.now().year - else: + elif year is None: year = options["year"][0] for timetable in Timetable.objects.all(): -- cgit v1.2.1