Re: Form stays invalid even after required field has been set

2008-12-10 Thread John M
I had this same issue, and it turned out i was not showing a necessary field. My advice, try to recreate from the command line with the basic form object and see what it says is missing. Good Luck, John On Dec 10, 7:26 am, Berco Beute <[EMAIL PROTECTED]> wrote: > Here's the code: > > http://dp

Re: Form stays invalid even after required field has been set

2008-12-10 Thread Berco Beute
On Dec 10, 7:24 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > You say you excluded 'product' from the form but the code you posted has not > excluded 'product', it has excluded 'parent' and 'usePrice'. Ahem[hides under a rock in shame]...I guess copy/paste got me there. > Also, the techniq

Re: Form stays invalid even after required field has been set

2008-12-10 Thread Karen Tracey
On Wed, Dec 10, 2008 at 10:26 AM, Berco Beute <[EMAIL PROTECTED]> wrote: > > Here's the code: > > http://dpaste.com/97758/ > > My modelform stays invalid although the required fields of the > instance are set. The 'product' field is excluded from the form > because it shouldn't be edited. When the

Re: Form stays invalid even after required field has been set

2008-12-10 Thread Rajesh Dhawan
On Dec 10, 12:51 pm, Berco Beute <[EMAIL PROTECTED]> wrote: > Thanks. There are no non-field errors though. Outputting the incoming > request object shows the error: > > orderLineForm is invalid: Product:This field > is required. id="id_Tickety tick-product"> > > The 'product' is required it says

Re: Form stays invalid even after required field has been set

2008-12-10 Thread Berco Beute
Thanks. There are no non-field errors though. Outputting the incoming request object shows the error: orderLineForm is invalid: Product:This field is required. The 'product' is required it says, but I just set it 2 lines before... 2B On Dec 10, 6:32 pm, Tim <[EMAIL PROTECTED]> wrote: > Try ad

Re: Form stays invalid even after required field has been set

2008-12-10 Thread Tim
Try adding this to your template: {% if form.non_field_errors %} {{form.non_field_errors.as_ul}}{% endif %} This will tell you form errors that aren't specific to a field. Tim On Dec 10, 8:26 am, Berco Beute <[EMAIL PROTECTED]> wrote: > Here's the code: > > http://dpaste.com/97758/ > > My mode