code: def generate_update_view(self):
          
  
          name = model_class_form(self.model + 'UpdateView')
          update_args = dict(
              form_class=self.get_actual_form('update'),
              model=self.get_model_class,
              template_name=self.get_template('update'),
              permissions=self.view_permission('update'),
              permission_required=self.check_permission_required,
              login_required=self.check_login_required,
              inlineformset=self.inlineformset,
              custom_form=self.createupdate_forms or self.custom_modelform,
              success_url=reverse_lazy('{}-{}-list'.format(self.app, self.custom_postfix_url)),
              custom_postfix_url=self.custom_postfix_url
          )
  
          parent_classes = [self.get_createupdate_mixin(), UpdateView]
          if self.custom_update_view_mixin:
              parent_classes.insert(0, self.custom_update_view_mixin)
  
          update_class = type(
              name,
              tuple(parent_classes),
              update_args
          )
          self.classes[name] = update_class
          return update_class
docs: Generate class based view for UpdateView