Dan Jacob wrote:
> If you add to your dict_new "widget=None" it will work:
>
> data_new = dict(
> widget = None,
> contrato_assinatura = '',
> contrato_vencimento = '',
> cliente_id = None,
> nome_abreviado = None,
> nome_completo = None,
> contrato = None,
> endereco = None,
> cidade = None,
>
> ("widget" being the default name of the fieldset). The problem is not
> so much FieldSet itself but how to handle compound widgets within a
> form with errors etc. (and what if you have a FieldSet within a
> FieldSet ?)
Yes, the problem is this. :-)
Late today I will post to the ticket a solution I'm working on and that
introduces the CompoundWidget, in this way it should work right and
recursively.
Ciao
Michele