1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 15:32:22 +00:00

Fix Profile model in Django Admin

This commit is contained in:
Yohann D'ANELLO 2020-08-09 13:42:37 +02:00
parent 8c885d372b
commit 5f87e76be8
2 changed files with 5 additions and 2 deletions

View File

@ -142,7 +142,10 @@ class Profile(models.Model):
indexes = [models.Index(fields=['user'])]
def get_absolute_url(self):
return reverse('user_detail', args=(self.pk,))
return reverse('member:user_detail', args=(self.user_id,))
def __str__(self):
return str(self.user)
def send_email_validation_link(self):
subject = "[Note Kfet]" + str(_("Activate your Note Kfet account"))

View File

@ -504,7 +504,7 @@ msgstr "adresse email confirmée"
#: apps/member/models.py:111
msgid "registration valid"
msgstr "inscription valid"
msgstr "inscription valide"
#: apps/member/models.py:140 apps/member/models.py:141
msgid "user profile"