Re: Testing Newforms for Blankness

2009-12-24 Thread Aristotle Miternan
Whoops, I think I misstated my use case. A better description: All the fields are required, but I don't want to return a forms.ValidationError if the entire form is blank, but I do if it is partially filled, I simply want to drop it. Perhaps this is simply bad design. Upon further consideration I

Re: Testing Newforms for Blankness

2009-12-24 Thread Aristotle Miternan
Hi Shawn, I am referring to forms.ModelForm, I think it might apply to forms as well, but I can't think of a good use case off the top of my head. I suppose I might have an uncommon use case. I display a form that has several optional parts (that have different models) that can be dynamically add

Re: Testing Newforms for Blankness

2009-12-24 Thread Shawn Milochik
On Dec 24, 2009, at 2:51 PM, Aristotle Miternan wrote: > Hello all, > >I'm fairly new to Django and I noticed a curious behavior of > forms. I noticed that there is no simple way to test a form for a form > not being filled at all. I think it might be a semi-common use case > that you might