From f36bceaddcd3315235fe9ce9172ea4f73ce405ba Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 22 Apr 2018 12:44:03 +0200 Subject: Suppression du paramètre --order-by-id dans listtimetables Ce paramètre est devenu inutile depuis l’ajout des sources, qui sont déjà triées par leur ID. --- management/commands/listtimetables.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'management') diff --git a/management/commands/listtimetables.py b/management/commands/listtimetables.py index d17399a..bd27e92 100644 --- a/management/commands/listtimetables.py +++ b/management/commands/listtimetables.py @@ -20,13 +20,8 @@ from ...models import Source class Command(BaseCommand): help = "List timetables in the database" - def add_arguments(self, parser): - parser.add_argument("--order-by-id", action="store_true") - def handle(self, *args, **options): sources = Source.objects.all() - if options["order_by_id"]: - sources = sources.order_by("id") for source in sources: self.stdout.write("{0}\t: {1} (id: {2})".format( -- cgit v1.2.1