summaryrefslogtreecommitdiffstats
path: root/activities/views
diff options
context:
space:
mode:
Diffstat (limited to 'activities/views')
-rw-r--r--activities/views/search.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/activities/views/search.py b/activities/views/search.py
index 4719f64..b5e5586 100644
--- a/activities/views/search.py
+++ b/activities/views/search.py
@@ -13,7 +13,8 @@ class Search(FormView):
class form_class(forms.Form):
query = forms.CharField(
- help_text="Search for a user by @username@domain or hashtag by #tagname"
+ help_text="Search for a user by @username@domain or hashtag by #tagname",
+ widget=forms.TextInput(attrs={"type": "search", "autofocus": "autofocus"}),
)
def search_identities(self, query: str):