newforms: strange bug with errors (solved)

2006-12-27 Thread SmileyChris
Hrm... pretty obvious now. I was using my own base form class overriding the Form class instead of BaseForm. On Dec 27, 10:51 pm, "SmileyChris" <[EMAIL PROTECTED]> wrote: I have a template tag to output a field with my format. It seems to have stopped working since the BaseForm/Form seperation

newforms: strange bug with errors

2006-12-27 Thread SmileyChris
I have a template tag to output a field with my format. It seems to have stopped working since the BaseForm/Form seperation def form_line(field): output = [] output.append(field.label_tag()) for error in field.errors: output.append('%s' % escape(error)) output.append(str(field