Django FeinCMS:type object';报告格式';没有属性'_feincms(内容)类型';
FeinCms在我的旧django-1.8上运行良好,但当我将它升级到django-2.0时,我遇到了这个错误。我只是被困在这里 型号:Django FeinCMS:type object';报告格式';没有属性'_feincms(内容)类型';,django,django-cms,feincms,Django,Django Cms,Feincms,FeinCms在我的旧django-1.8上运行良好,但当我将它升级到django-2.0时,我遇到了这个错误。我只是被困在这里 型号: class MyForm(create_base_model()): name = models.CharField(max_length=255, default='New Report', unique=True) title = models.CharField(max_length=255) # Attach content type
class MyForm(create_base_model()):
name = models.CharField(max_length=255, default='New Report', unique=True)
title = models.CharField(max_length=255)
# Attach content types to Report
report = ReportForm()
report.register_regions(
('main', 'Main content'),
)
map(report.create_content_type, CONTENT_TYPES) # CONTENT_TYPES are my custom content types
from feincms.admin.item_editor import ItemEditor
admin.site.register(MyForm, ItemEditor)
管理员:
class MyForm(create_base_model()):
name = models.CharField(max_length=255, default='New Report', unique=True)
title = models.CharField(max_length=255)
# Attach content types to Report
report = ReportForm()
report.register_regions(
('main', 'Main content'),
)
map(report.create_content_type, CONTENT_TYPES) # CONTENT_TYPES are my custom content types
from feincms.admin.item_editor import ItemEditor
admin.site.register(MyForm, ItemEditor)