code: def generate_list_view(self):
          
  
          name = model_class_form(self.model + 'ListView')
          list_args = dict(
              model=self.get_model_class,
              context_object_name=plural(self.model),
              template_name=self.get_template('list'),
              table_class=self.get_actual_table(),
              context_table_name='table_objects',
              crud=self.crud,
              permissions=self.view_permission('list'),
              permission_required=self.check_permission_required,
              login_required=self.check_login_required,
              table_pagination={'per_page': self.tables2_pagination or 10},
              custom_queryset=self.custom_queryset,
              custom_context=self.custom_context,
              custom_postfix_url=self.custom_postfix_url
          )
  
          list_class = type(
              name,
              (BaseListViewMixin, SingleTableView),
              list_args
          )
          self.classes[name] = list_class
          return list_class
docs: Generate class based view for ListView