From 1516f00c4f9dc00c61e5fe028d7a1d63dcc4ca1a Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 16 Jan 2023 17:55:08 +0100 Subject: [PATCH] fix args --- teleforma/management/commands/teleforma-update-site.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/management/commands/teleforma-update-site.py b/teleforma/management/commands/teleforma-update-site.py index 01e06e93..a68da18a 100644 --- a/teleforma/management/commands/teleforma-update-site.py +++ b/teleforma/management/commands/teleforma-update-site.py @@ -7,8 +7,8 @@ class Command(BaseCommand): help = "Change Site domain to another" def handle(self, *args, **options): - to_domain = args[-1] - from_domain = args[-2] + to_domain = args[1] + from_domain = args[0] site = Site.objects.get(domain=from_domain) site.domain = to_domain -- 2.39.5