예제 #1
0
 def export_users_for_branchs(self, request, queryset):
     response = HttpResponse(content_type='application/ms-excel')
     response['Content-Disposition'] = 'attachment; filename=export_iscritos.xls'
     work_book = Branch.export_xls_users_by_specialty(request, queryset)
     work_book.save(response)
     return response