]> git.parisson.com Git - teleforma.git/commitdiff
fix args
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 16 Jan 2023 16:55:08 +0000 (17:55 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 16 Jan 2023 16:55:08 +0000 (17:55 +0100)
teleforma/management/commands/teleforma-update-site.py

index 01e06e932f07544fcb416235aa09a70f9d674714..a68da18abfbaba4212654f8843a985b9a3501eec 100644 (file)
@@ -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