From 9473b354a6ab3ed896540908db2ba2ac6521426a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Tue, 4 May 2021 17:10:39 +0200 Subject: [PATCH] =?UTF-8?q?Make=20K-F=C3=AAt=20search=20results=20clickabl?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kfet/autocomplete.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kfet/autocomplete.py b/kfet/autocomplete.py index 326c2796..421a4164 100644 --- a/kfet/autocomplete.py +++ b/kfet/autocomplete.py @@ -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