code: def edit_view(self, request, object_id):
          
          kwargs = {'model_admin': self, 'object_id': object_id}
          view_class = self.edit_view_class
          return view_class.as_view(**kwargs)(request)
docs: Instantiates a class-based view to provide 'edit' functionality for the
          assigned model, or redirect to Wagtail's edit view if the assigned
          model extends 'Page'. The view class used can be overridden by changing
          the  'edit_view_class' attribute.