def export_flow_results_task(id): """ Export a flow to a file and e-mail a link to the user """ tasks = ExportFlowResultsTask.objects.filter(pk=id) if tasks: task = tasks[0] task.do_export()
def export_sms_task(id): """ Export messages to a file and e-mail a link to the user """ tasks = ExportMessagesTask.objects.filter(pk=id) if tasks: task = tasks[0] task.do_export()
def export_contacts_task(id): """ Export contacts to a file and e-mail a link to the user """ tasks = ExportContactsTask.objects.filter(pk=id) if tasks: task = tasks[0] task.do_export()