Re: Two forms.Form one page: second form will not show any errors

2009-02-05 Thread Gordon Cassie
Thanks very much for the help! On Thu, Feb 5, 2009 at 12:07 PM, Alex Gaynor wrote: > > > On Thu, Feb 5, 2009 at 2:10 PM, Gordon Cassie wrote: > >> That did the trick. >> >> Another quick question. I have made some custom validations in the forms >>

Re: Two forms.Form one page: second form will not show any errors

2009-02-05 Thread Alex Gaynor
On Thu, Feb 5, 2009 at 2:10 PM, Gordon Cassie wrote: > That did the trick. > > Another quick question. I have made some custom validations in the forms > clean() method. The only way I can seem to display the errors in the > template is by doing this: > {{ form.errors }}.

Re: Two forms.Form one page: second form will not show any errors

2009-02-05 Thread Gordon Cassie
That did the trick. Another quick question. I have made some custom validations in the forms clean() method. The only way I can seem to display the errors in the template is by doing this: {{ form.errors }}. The problem with this is before it displays the actual errors it is displaying __all__.

Re: Two forms.Form one page: second form will not show any errors

2009-02-05 Thread Alex Gaynor
On Thu, Feb 5, 2009 at 2:25 AM, Gordon wrote: > > Form 1 Template (rendered from view): > http://dpaste.com/116827/ > > Form 2 Template (included in Form 1): > http://dpaste.com/116826/ > > View Code: > http://dpaste.com/116828/ > > Form 2 Code: >

Re: Two forms.Form one page: second form will not show any errors

2009-02-04 Thread Gordon
Form 1 Template (rendered from view): http://dpaste.com/116827/ Form 2 Template (included in Form 1): http://dpaste.com/116826/ View Code: http://dpaste.com/116828/ Form 2 Code: http://dpaste.com/116829/ Once again, the problem is that Form 2 won't display any errors while Form 1 will display

Re: Two forms.Form one page: second form will not show any errors

2009-02-04 Thread Karen Tracey
On Thu, Feb 5, 2009 at 2:03 AM, Gordon wrote: > > Hello, > I have seperate django forms wrapper in one html form tag in my > template. > > When i render, both forms display fully. When I post, errors display > for the first form but not for the second. I am using a tag

Two forms.Form one page: second form will not show any errors

2009-02-04 Thread Gordon
Hello, I have seperate django forms wrapper in one html form tag in my template. When i render, both forms display fully. When I post, errors display for the first form but not for the second. I am using a tag by tag approach to the the template. Interesting thing is I did a test to see if