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:
parent
8c885d372b
commit
5f87e76be8
@ -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"))
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user