如何更改第三方Django应用程序的字段或模型属性? [英] How do I change field or model attributes of a third-party Django app?
本文介绍了如何更改第三方Django应用程序的字段或模型属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我该怎么做?
解决方案
简单的答案是不要请改用代理模型。
Let's say, I use django.contrib.flatpages, or any other third-party app in my project. I want to change some of this app's model attributes - for example, verbose_name. How can I do that?
解决方案
The simple answer is "don't"; use a proxy model instead.
这篇关于如何更改第三方Django应用程序的字段或模型属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文