On Mon, Sep 29, 2008 at 2:42 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:
>
> Hi Karen,
>
> Thank you for your answer, but when i access the _errors att in a
> controller methods, and
> adds a new array containing a unicode string, it is not rendered like
> the other error messages.
> I see an output like
>
> [u'Stuff happened']
>
> where I put {{ form.field.errors }} in my template. I expected it to
> be rendered as a normal error message (ul, li)
>
> What am I doing wrong?
>
>
Try:
form._errors['field_name'] = form.error_class([u'Stuff happened'])
Karen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---