Re: Django export CSV file of two objects

2014-05-15 Thread hito koto
Hi, i also write the views but the column was freaking After output to excel in this code. def export_excel(request): response = HttpResponse(mimetype='application/vnd.ms-excel; charset="Shift_JIS"') response['Content-Disposition'] = 'attachment; filename=file.csv' writer =

Django export CSV file of two objects

2014-05-15 Thread hito koto
Hello, I want to export file from database and from two objects; I'm use MYSQL, I have two objects: 1, attendance object: 2. get_work object: I now can export one object's datas; So, i how can export datas of two objects; My the views.py is here: def export_excel(request): response =