restore user ordering

This commit is contained in:
thomas girod
2024-09-23 21:26:34 +02:00
parent c6657bffd2
commit f182de5929
4 changed files with 86 additions and 4 deletions

View File

@ -85,7 +85,7 @@ def search_user(query):
SearchQuerySet()
.models(User)
.autocomplete(auto=query)
.order_by("-last_update")[:20]
.order_by("-last_login")[:20]
)
return [r.object for r in res]
except TypeError: