def handle(self, *args, **options):
     writer = csv.writer(self.stdout)
     header_row = DataExport.report_mailchimp_header_row()
     writer.writerow(header_row)
     for row in DataExport.report_mailchimp():
         writer.writerow(row)
     self.stderr.write(self.style.SUCCESS('Successfully generated report'))
示例#2
0
    def handle(self, *args, **options):

        writer = csv.writer(self.stdout)
        writer.writerow(DataExport.report_churn_header_row())
        for row in DataExport.report_churn():
            writer.writerow(row)
        self.stderr.write(self.style.SUCCESS('Successfully generated report'))
示例#3
0
 def handle(self, *args, **options):
     writer = csv.writer(self.stdout)
     header_row = DataExport.report_mailchimp_header_row()
     writer.writerow(header_row)
     for row in DataExport.report_mailchimp():
         writer.writerow(row)
     self.stderr.write(self.style.SUCCESS('Successfully generated report'))
示例#4
0
def db_report(request):
    response = HttpResponse(content_type='text/csv')
    response['Content-Disposition'] = 'attachment; filename="db.csv"'
    writer = csv.writer(response)
    header_row = DataExport.report_db_header_row()
    writer.writerow(header_row)
    for row in DataExport.report_db():
        writer.writerow(row)

    return response
示例#5
0
def db_report(request):
    response = HttpResponse(content_type='text/csv')
    response['Content-Disposition'] = 'attachment; filename="db.csv"'
    writer = csv.writer(response)
    header_row = DataExport.report_db_header_row()
    writer.writerow(header_row)
    for row in DataExport.report_db():
        writer.writerow(row)

    return response
示例#6
0
def churn_report(request):
    response = HttpResponse(content_type='text/csv')
    response['Content-Disposition'] = 'attachment; filename="churn.csv"'

    writer = csv.writer(response)
    for row in DataExport.report_churn():
        writer.writerow(row)

    return response
示例#7
0
def churn_report(request):
    response = HttpResponse(content_type='text/csv')
    response['Content-Disposition'] = 'attachment; filename="churn.csv"'

    writer = csv.writer(response)
    for row in DataExport.report_churn():
        writer.writerow(row)

    return response