Commit 5116eaf3 authored by chirac's avatar chirac
Browse files

On met quel est la redirection dans l'historique (cosmétique)

parent ac908d6a
......@@ -241,7 +241,7 @@ def add_mailalias(request, userid):
with transaction.atomic(), reversion.create_revision():
alias.save()
reversion.set_user(request.user)
reversion.set_comment("Création")
reversion.set_comment("Création (%s vers %s)" % (alias.alias,alias.redirection))
messages.success(request, "L'alias a été ajouté")
return redirect("/users/profil/" + str(user.id))
return form({'userform': alias}, 'users/user.html', request)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment