From: yomguy Date: Tue, 5 Feb 2013 15:02:35 +0000 (+0100) Subject: fix args X-Git-Tag: 1.1~635 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a1607b4072c081a1b66aa7ee0cef86d7d72c19f0;p=teleforma.git fix args --- diff --git a/teleforma/management/commands/teleforma-broadcast-message.py b/teleforma/management/commands/teleforma-broadcast-message.py index c2628ab3..01fcf726 100644 --- a/teleforma/management/commands/teleforma-broadcast-message.py +++ b/teleforma/management/commands/teleforma-broadcast-message.py @@ -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)