阅读背景:

Django管理命令通过使用超类来提取常用功能

来源:互联网 

I have two similar management commands, with lot of common code. I want to put common code in a MyClass that extends NoArgsCommand and then create commands let us say CommandA and CommandB that extend MyClass. I have a handle method in CommandA and CommandB and trying to call super.handle. I am getting error type object 'super' has no attribute 'handle'I have two similar management commands, with lo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: