From 4f55b408e755e2f79fd2e1cc0d874ef32a3d61a3 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Fri, 26 Nov 2021 04:48:08 +0100 Subject: [PATCH] =?UTF-8?q?CSV=20export=C3=ADtko:=20zobrazovat=20u=C5=BEiv?= =?UTF-8?q?atele=20p=C5=99ihla=C5=A1ovac=C3=ADm=20jm=C3=A9nem,=20ne=20id.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- personalni/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/personalni/views.py b/personalni/views.py index 7d62fcb3..7ecfb8f4 100644 --- a/personalni/views.py +++ b/personalni/views.py @@ -319,14 +319,14 @@ def dataResiteluCsvResponse(queryset, columns=None, with_header=True): 'osoba__prezdivka', 'osoba__email', 'osoba__telefon', - 'osoba__user', + 'osoba__user__username', 'osoba__datum_narozeni', 'osoba__pohlavi_muz', 'osoba__ulice', 'osoba__mesto', 'osoba__psc', 'osoba__stat', - 'skola', # Bude fungovat takhle? + 'skola', #FIXME: dává jen ID 'poznamka', 'osoba__poznamka', 'rok_maturity', @@ -345,7 +345,7 @@ def dataResiteluCsvResponse(queryset, columns=None, with_header=True): 'osoba__prezdivka': 'prezdivka', 'osoba__email': 'email', 'osoba__telefon': 'telefon', - 'osoba__user': 'user', + 'osoba__user__username': 'user', 'osoba__datum_narozeni': 'datum_narozeni', 'osoba__pohlavi_muz': 'pohlavi_muz', 'osoba__ulice': 'ulice',