Template Variables as Indexes

2009-04-24 Thread NewSpire
I have a list of forms, all of the same type, where I would like to list each form side by side with the fields listed vertically. The root of the problem is that I need to use a template variable as an index on another template variable. Something like this. {% for field in forms.0 %}

Form Errors after validations

2008-07-03 Thread NewSpire
I have a newform and I do most of the validation with the clean functions and that works great. I need to generate a form error from inside the view that is displayed just like any other validation error. For example, the form data is all valid, but the credit card processing fail. How could I