Skip to content
Snippets Groups Projects
Commit f36bcead authored by Alban Gruin's avatar Alban Gruin
Browse files

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.
parent 0eeba2b3
Branches
Tags
No related merge requests found
......@@ -20,13 +20,8 @@
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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment