allow adding groups to users in bulk
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import secrets
|
||||
from typing import Optional
|
||||
from django.conf import settings
|
||||
|
||||
from django_tables2 import SingleTableMixin
|
||||
@@ -542,6 +543,12 @@ class UserListTableView(CidManagerRequiredMixin, SingleTableMixin, FilterView):
|
||||
|
||||
filterset_class = UserUserFilter
|
||||
|
||||
#table_pagination = {"per_page": 5}
|
||||
|
||||
def get_paginate_by(self, table_data) -> int | None:
|
||||
return 2
|
||||
#return super().get_paginate_by(table_data)
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
# user = self.request.user
|
||||
|
||||
Reference in New Issue
Block a user