阅读背景:

提取页面元数据是否可以很好地利用多重继承?

来源:互联网 

I was wondering if I have a couple of models which both include fields like "meta_keywords" or "slug" which have to do with the web page the model instance will be displayed on, whether it would be advisable to break those page metadata elements out into their own class, say PageMeta, and have my other models subclass those via multiple inheritance?I was wondering if I have a couple of models wh




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

分享到: