1.super(type,obj):obj must be an instance or subtype of type

  解决方法:

 这行:

return super(SearchAndCheckXadmin, self).post(request,args,kwargs)  # 必须调用SearchAndCheckXadmin父类,再调用post方法,否则会报错

应该为:
return super(SearchAndCheckXadmin, self).post(request,*args,**kwargs)  # 必须调用SearchAndCheckXadmin父类,再调用post方法,否则会报错

注意参数的引用和调用的是本身的模块,即:
  一、“SearchAndCheckXadmin”一定是本身的类名字,不要写成别的类的名字;
  二、post参数一定是post(request,*args,**kwargs),不要写成post(request,args,kwargs)

相关文章:

  • 2022-01-12
  • 2022-01-20
  • 2021-07-23
  • 2021-09-18
  • 2021-12-31
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2021-08-26
  • 2021-12-19
  • 2021-06-15
  • 2022-02-08
  • 2022-01-06
  • 2021-08-09
相关资源
相似解决方案