]> git.parisson.com Git - teleforma.git/commitdiff
fix args
authoryomguy <yomguy@parisson.com>
Tue, 5 Feb 2013 15:02:35 +0000 (16:02 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 5 Feb 2013 15:02:35 +0000 (16:02 +0100)
teleforma/management/commands/teleforma-broadcast-message.py

index c2628ab3e50be7a95638bcd234783a8e3d20c3c2..01fcf726ec5a6723be5178b374c88e35b39bf63d 100644 (file)
@@ -10,8 +10,8 @@ class Command(BaseCommand):
     args = "text username"
 
     def handle(self, *args, **options):
-        text = args[0]
-        username = args[1]
+        text = args[1]
+        username = args[0]
         user = User.objects.get(username=username)
         room = Room.objects.get(name='site')
         message = Message.objects.create_message(user, room, text)