code: def register_view(self, view_class, *args, **kwargs):
          
          protected_view_class = self.view_class_factory(view_class)
          if 'endpoint' not in kwargs:
              kwargs['endpoint'] = view_class(*args, **kwargs).endpoint
          self.admin.add_view(protected_view_class(*args, **kwargs))
docs: Register an admin view on this admin instance.
  
          :param view_class: The view class name passed to the view factory.
          :param args: Positional arugments for view class.
          :param kwargs: Keyword arguments to view class.