From 8d4d864f7d9dc0605cd21b87acc649496b11bd7c Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 19 May 2026 00:00:39 +0200 Subject: [PATCH] rename exported file --- teleforma/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/admin.py b/teleforma/admin.py index 204e471a..93180d10 100644 --- a/teleforma/admin.py +++ b/teleforma/admin.py @@ -223,7 +223,7 @@ class StudentAdmin(StudentAdminMixin, admin.ModelAdmin): book = StudentReadingsXLSBook(students=queryset) book.write() response = HttpResponse(content_type="application/vnd.ms-excel") - response['Content-Disposition'] = 'attachment; filename=%s.xls' % queryset[0].user.username + response['Content-Disposition'] = 'attachment; filename=%s-readings.xls' % queryset[0].user.username book.book.save(response) return response -- 2.47.3