1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 01:18:22 +02:00

Name of syntheses

This commit is contained in:
Yohann D'ANELLO
2020-05-08 19:06:04 +02:00
parent 8ceecd85c8
commit 6c907e0168
2 changed files with 18 additions and 13 deletions

View File

@ -524,7 +524,8 @@ class PoolDetailView(LoginRequiredMixin, DetailView):
resp = HttpResponse(out.getvalue(), content_type="application/x-zip-compressed")
resp['Content-Disposition'] = 'attachment; filename={}' \
.format(_("Syntheses of a pool.zip").replace(" ", "%20"))
.format(_("Syntheses of a pool for the round {round} of the tournament {tournament}.zip")
.format(round=pool.round, tournament=str(pool.tournament)).replace(" ", "%20"))
return resp
return self.get(request, *args, **kwargs)