Regular user search now also finds by email address

This commit is contained in:
2018-01-05 15:51:30 +01:00
parent fdab66a500
commit 75a6de18b2

View File

@@ -92,6 +92,7 @@ def do_user_search(query: str, terms: dict) -> dict:
should = [
Q('match', username=query),
Q('match', full_name=query),
Q('match', email=query),
]
must = [