old_contents: from django.core.management.base import BaseCommand
  from optparse import make_option
  from rapidsms_httprouter.router import get_router
  from rapidsms.models import Connection
  
  class Command(BaseCommand):
  
      option_list = BaseCommand.option_list + (
          make_option("-p", "--phone", dest="phone"),
          make_option("-t", "--text", dest="text"),
      )
  
      def handle(self, **options):
  	phone = options['phone'] or raw_input('Phone number you wish the message to appear to come from: ')
          text = options['text'] or raw_input('Text of the message: ')
  
  	connection  = Connection.objects.get(identity = phone)
          router = get_router()
          handled = router.handle_incoming(connection.backend.name, connection.identity, text)
          self.stdout.write('Done!\n')
  
new_contents: from django.core.management.base import BaseCommand
  from optparse import make_option
  from education.send import broadcast
  
  class Command(BaseCommand):
  
      option_list = BaseCommand.option_list + (
          make_option("-t", "--text", dest="text"),
      )
  
      def handle(self, **options):
          text = options['text'] or raw_input('Text of the message: ')
          broadcast(text)
          self.stdout.write('Done!\n')
  
subject: Fix broadcast command.