From 0fdc1a2a46b0641379bf565702d030c94acd0eef Mon Sep 17 00:00:00 2001 From: catvayor Date: Mon, 23 Dec 2024 11:27:19 +0100 Subject: [PATCH] fix(k-fet/accouts/new): reverse path at trigramme creation --- kfet/models.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kfet/models.py b/kfet/models.py index 003609a4..f30e093e 100644 --- a/kfet/models.py +++ b/kfet/models.py @@ -283,9 +283,13 @@ class Account(models.Model): context={ "account": self, "site": Site.objects.get_current(), - "url_read": reverse("kfet.account.read", args=(self.trigramme)), - "url_update": reverse("kfet.account.update", args=(self.trigramme)), - "url_delete": reverse("kfet.account.delete", args=(self.trigramme)) + "url_read": reverse("kfet.account.read", args=(self.trigramme,)), + "url_update": reverse( + "kfet.account.update", args=(self.trigramme,) + ), + "url_delete": reverse( + "kfet.account.delete", args=(self.trigramme,) + ), }, ), from_email=mail_data["FROM"],