ModelForm and required fields

2008-05-01 Thread zmalloc
ModelForm currently does not provide anything like class="required" on rendered forms where fields are required. This has led me to create the fields manually in the form and add the style attribute to the widget. Doing this, I then lose help_text definitions created in the model. So I can

Re: Basic ModelForm operation question

2008-04-22 Thread zmalloc
Unless your model has defined columns with unique_together, and the form attempts to save fields which violate the constraint. In that case, an integrity exception is raised because ModelForm does not currently valid it. You must perform this validation yourself. On Apr 19, 10:20 pm, Malcolm