Remove PreserveGetQuerySet mixin. Update SingleObjectList and
MultipleObjectFormActionView views to use a new get_object_list method. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -240,7 +240,7 @@ class UserListView(SingleObjectListView):
|
||||
'title': _('Users'),
|
||||
}
|
||||
|
||||
def get_queryset(self):
|
||||
def get_object_list(self):
|
||||
return get_user_model().objects.exclude(
|
||||
is_superuser=True
|
||||
).exclude(is_staff=True).order_by('last_name', 'first_name')
|
||||
|
||||
Reference in New Issue
Block a user