web/form.py
branchtls-sprint
changeset 1564 de0548cb0ab8
parent 1545 53d3d783370f
parent 1561 85752d14c15d
child 1651 675873ed82e3
equal deleted inserted replaced
1558:f63d090eb34a 1564:de0548cb0ab8
   419 
   419 
   420 
   420 
   421 class EntityFieldsForm(FieldsForm):
   421 class EntityFieldsForm(FieldsForm):
   422     __select__ = (match_kwargs('entity') | (one_line_rset & non_final_entity()))
   422     __select__ = (match_kwargs('entity') | (one_line_rset & non_final_entity()))
   423 
   423 
   424     internal_fields = FieldsForm.internal_fields + ('__type', 'eid')
   424     internal_fields = FieldsForm.internal_fields + ('__type', 'eid', '__maineid')
   425     domid = 'entityForm'
   425     domid = 'entityForm'
   426 
   426 
   427     def __init__(self, *args, **kwargs):
   427     def __init__(self, *args, **kwargs):
   428         self.edited_entity = kwargs.pop('entity', None)
   428         self.edited_entity = kwargs.pop('entity', None)
   429         msg = kwargs.pop('submitmsg', None)
   429         msg = kwargs.pop('submitmsg', None)