forked from DGNum/gestioCOF
Make K-Fêt search results clickable
This commit is contained in:
parent
9bbe3f50cb
commit
9473b354a6
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ class KfetAccountSearch(autocomplete.ModelSearch):
|
|||
def result_uuid(self, user):
|
||||
return user.username
|
||||
|
||||
def result_link(self, user):
|
||||
return reverse("kfet.account.create.fromuser", args=(user.username,))
|
||||
|
||||
|
||||
class COFMemberSearch(autocomplete.ModelSearch):
|
||||
model = User
|
||||
|
|
Loading…
Reference in a new issue