【发布时间】:2016-06-13 22:23:56
【问题描述】:
我正在使用 Pinax Stripe(https://github.com/pinax/pinax-stripe) 开发一个 django 应用程序。 Pinax stripe 是一个捆绑的应用程序,它有一个名为“Plans”的模型。现在在我的应用程序中,我想在我的应用程序中向模型“计划”添加一些额外的字段,但不修改原始 pinax 条纹应用程序。
类似这样的:
#models.py
from pinax-stripe.models import Plan
class UserProfile(models.Model):
#write the extra fields here
有什么办法可以做到,然后向管理员注册,这样我就可以将数据添加到管理面板中的这些字段?
【问题讨论】: