0
我嘗試下載一個視圖postgres到excel,這可能與ExcelResponse?將RawQuerySet導出爲ExcelResponse。錯誤「ExcelResponse需要一個序列序列」
from excel_response import ExcelResponse
def vw_export_to_Excel(request):
data = _Custumer.objects.raw('''select * from vw_customer''')
return ExcelResponse(data, 'customer')
完美非常感謝你,問候 – 2014-11-22 13:38:38