|
@@ -647,7 +647,7 @@ class AdminManage(TemplateView):
|
|
user_qs = Device_User.objects.filter(subscribe_email=1).values('userEmail')
|
|
user_qs = Device_User.objects.filter(subscribe_email=1).values('userEmail')
|
|
print(user_qs)
|
|
print(user_qs)
|
|
response = HttpResponse(content_type='application/vnd.ms-excel')
|
|
response = HttpResponse(content_type='application/vnd.ms-excel')
|
|
- response['Content-Disposition'] = 'attachment; filename=UID' + time.strftime('-%Y-%m-%d-%H-%M-%S', time.localtime()) + '.xls'
|
|
|
|
|
|
+ response['Content-Disposition'] = 'attachment; filename=Email' + time.strftime('-%Y-%m-%d-%H-%M-%S', time.localtime()) + '.xls'
|
|
workbook = xlwt.Workbook(encoding='utf-8')
|
|
workbook = xlwt.Workbook(encoding='utf-8')
|
|
sheet1 = workbook.add_sheet('Email Address')
|
|
sheet1 = workbook.add_sheet('Email Address')
|
|
|
|
|