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
>>
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 }}.
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__.
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:
>
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
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
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
7 matches
Mail list logo