]> git.parisson.com Git - teleforma.git/commitdiff
rename exported file master release/2.x
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 18 May 2026 22:00:39 +0000 (00:00 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 18 May 2026 22:00:39 +0000 (00:00 +0200)
teleforma/admin.py

index 204e471a41474c4f370fcd6039b370e2e20c3883..93180d1080a08d6668ed34b45b3400b35b1fd44a 100644 (file)
@@ -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