fix(k-fet/accouts/new): reverse path at trigramme creation

This commit is contained in:
catvayor 2024-12-23 11:27:19 +01:00
parent aafbab29ff
commit 0fdc1a2a46
Signed by: lbailly
GPG key ID: CE3E645251AC63F3

View file

@ -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"],