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