mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 22:52:26 +00:00
Permet la recherche avec telephone et email des users
This commit is contained in:
parent
20cd616979
commit
1b5f1820b9
1 changed files with 3 additions and 1 deletions
|
@ -140,7 +140,9 @@ def search_single_word(word, filters, user,
|
||||||
) | Q(
|
) | Q(
|
||||||
room__name__icontains=word
|
room__name__icontains=word
|
||||||
) | Q(
|
) | Q(
|
||||||
room__name__icontains=word
|
email__icontains=word
|
||||||
|
) | Q(
|
||||||
|
telephone__icontains=word
|
||||||
)
|
)
|
||||||
) & Q(state__in=user_state)
|
) & Q(state__in=user_state)
|
||||||
if not User.can_view_all(user)[0]:
|
if not User.can_view_all(user)[0]:
|
||||||
|
|
Loading…
Reference in a new issue