2024-04-19 08:17:05 发布
网友
有人能帮我增加一个额外的吗模型.CharField到我的Django cities\u light_地区表。在
这就是我想要实现的:
class MyRegion(Region): state_code = models.CharField(max_length=100, default='XXX', blank=True) class Meta: proxy = True
错误: ?:(models.E017)代理模型“MyRegion”包含模型字段。在
好吧,错误消息说明一切:代理模型不能包含模型字段,原因很明显,a proxy model is a class that uses the table of another model and only add or override behaviour。在
好吧,错误消息说明一切:代理模型不能包含模型字段,原因很明显,a proxy model is a class that uses the table of another model and only add or override behaviour。在
相关问题 更多 >
编程相关推荐