我有一个表单架构,它继承自另一个表单架构。两者都有字段集。但是,这些字段集是按照它们创建的顺序放置的。所以最后一个模式中描述的字段集将是最后一个。我希望它是第一个。有没有办法做到这一点 ?
例子:
from plone.supermodel import model
from zope import schema
class FormSchema(model.Schema):
model.fieldset(
'test',
label='Test',
fields=['field1']
)
field1 = schema.Text(title=u'test')
class FormSchema2(FormSchema):
# Is last but I would like to place it first
model.fieldset(
'test2',
label='Test2',
fields=['field2']
)
field2 = schema.Text(title=u'test2')