equal
deleted
inserted
replaced
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) |