def do(self): models.send_letters() models.send_to_email()
def handle(self, *args, **options): translation.activate(settings.LANGUAGE_CODE) now = datetime.now() models.send_to_email() models.clear_statuses() self.stdout.write(u"Emails was successfully sended at %s \n" % unicode(now))