1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-09 02:50:19 +02:00

Test setting the received participation and the sent participation

This commit is contained in:
Yohann D'ANELLO
2020-11-03 17:21:50 +01:00
parent e73bb2d18b
commit b6cefc1519
3 changed files with 99 additions and 13 deletions

View File

@ -388,7 +388,7 @@ class SetParticipationReceiveParticipationView(AdminMixin, UpdateView):
template_name = "participation/receive_participation_form.html"
def get_success_url(self):
return reverse_lazy("participation:participation_detail", args=(self.object.pk,))
return reverse_lazy("participation:participation_detail", args=(self.kwargs["pk"],))
class SetParticipationSendParticipationView(AdminMixin, UpdateView):
@ -400,7 +400,7 @@ class SetParticipationSendParticipationView(AdminMixin, UpdateView):
template_name = "participation/send_participation_form.html"
def get_success_url(self):
return reverse_lazy("participation:participation_detail", args=(self.object.pk,))
return reverse_lazy("participation:participation_detail", args=(self.kwargs["pk"],))
class CreateQuestionView(LoginRequiredMixin, CreateView):