From: Guillaume Pellerin Date: Mon, 16 Jan 2023 16:55:08 +0000 (+0100) Subject: fix args X-Git-Tag: 2.8.0~33 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0d0151e6bef14fcce119856974115802d0d08df0;p=teleforma.git fix args --- 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