0
我安装了应用程序https://github.com/zerok/django-flatblocks,接下来我想扩展这个应用程序模型https://github.com/zerok/django-flatblocks/blob/master/flatblocks/models.py。新models.py看起来Django扩展现有的应用程序
class MyFlatBlock(FlatBlock):
my_field = models.CharField()
我怎么能做到这一点,whitout应对所有应用程序(Django的flatblocks)到我的项目,并改写这个模式?
好的,在这个例子中它会工作! 我能做些什么,如果我想重写仅此https://github.com/zerok/django-flatblocks/blob/master/flatblocks/models.py 获取例如像这样在flatblocks结束/models.py:http://www.pastie.org/2036952 – 2011-06-08 10:33:38
@Valentino Langarosa你想实现什么? – DrTyrsa 2011-06-08 10:47:11