From: Guillaume Pellerin Date: Mon, 18 May 2026 22:00:39 +0000 (+0200) Subject: rename exported file X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8d4d864f7d9dc0605cd21b87acc649496b11bd7c;p=teleforma.git rename exported file --- 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