1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 14:38:24 +02:00

Name of solutions

This commit is contained in:
Yohann D'ANELLO
2020-05-08 19:44:46 +02:00
parent 6c907e0168
commit 5668e1e642
2 changed files with 8 additions and 5 deletions

View File

@ -508,7 +508,8 @@ class PoolDetailView(LoginRequiredMixin, DetailView):
resp = HttpResponse(out.getvalue(), content_type="application/x-zip-compressed")
resp['Content-Disposition'] = 'attachment; filename={}' \
.format(_("Solutions of a pool.zip").replace(" ", "%20"))
.format(_("Solutions of a pool for the round {round} of the tournament {tournament}.zip")
.format(round=pool.round, tournament=str(pool.tournament)).replace(" ", "%20"))
return resp
elif "syntheses_zip" in request.POST and user.organizes:
if user.participates and pool.round == 2 and pool.tournament.date_solutions_2 > timezone.now():