From 64bd3607161f66114a4e3d1060a61646e558d8d3 Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Fri, 4 Mar 2022 22:55:59 +0100 Subject: [PATCH] =?UTF-8?q?P=C5=99idat=20hlavi=C4=8Dku?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prednasky/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prednasky/views.py b/prednasky/views.py index aa2936fc..ce0e344b 100644 --- a/prednasky/views.py +++ b/prednasky/views.py @@ -142,6 +142,9 @@ def exportSeznamuPrednasekNeHodnoceni(req, seznam): 'obtiznost', 'popis', ) + # Hlavička + writer.writerow(attrs) + # Tělo for predn in Prednaska.objects.filter(seznamy=seznam): row = [getattr(predn, attr) for attr in attrs] writer.writerow(row)