Skip to content

Commit

Permalink
Correction d'un lien dans le MP d'ajout d'un auteur à un contenu (#6343)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekzer authored Jun 27, 2022
1 parent 672d85f commit afc088e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zds/tutorialv2/views/authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def form_valid(self, form):
self.object.validation_private_message.add_participant(user)
all_authors_pk.append(user.pk)
if user != self.request.user:
url_index = reverse(self.object.type.lower() + ":find-" + self.object.type.lower(), args=[user.pk])
url_index = reverse(
self.object.type.lower() + ":find-" + self.object.type.lower(), args=[user.username]
)
send_mp(
bot,
[user],
Expand Down

0 comments on commit afc088e

Please sign in to comment.