Re: form_for_model with custom modifications and save()

2007-07-20 Thread ilDave
Ok, I resolved just adding a 'codice' key with the right value to the f.clean_data dict before saving... Is there a better way or can I stay with this? On Jul 20, 4:35 pm, ilDave <[EMAIL PROTECTED]> wrote: > Hello! > I'm using form_for_model to create a form for a particulary complex > model. >

form_for_model with custom modifications and save()

2007-07-20 Thread ilDave
Hello! I'm using form_for_model to create a form for a particulary complex model. I don't want to show a particular field of the model in the form, so I did this: PreventivoForm = form_for_model(Preventivo) #Preventivo is the name of the model del PreventivoForm.base_fields['codice'] # codice i