1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 18:08:21 +02:00

Add tab for user list

This commit is contained in:
Yohann D'ANELLO
2020-04-01 20:56:24 +02:00
parent 5eb08fd822
commit 3f5faa0b05
6 changed files with 68 additions and 15 deletions

View File

@ -170,10 +170,13 @@ class UserListView(ProtectQuerysetMixin, LoginRequiredMixin, SingleTableView):
else:
qs = qs.none()
return qs
return qs[:20]
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["title"] = _("Search user")
return context