Add tab for user list
This commit is contained in:
parent
5eb08fd822
commit
3f5faa0b05
6 changed files with 68 additions and 15 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue