Re: get for errors as string and not as HTML

2008-04-30 Thread Rishabh Manocha
Did you take a look at http://www.djangoproject.com/documentation/newforms/#customizing-the-error-list-format ?? You could just return the error message without wrapping it in any div/span/ul etc. R On Tue, 2008-04-29 at 22:23 -0700, Mike Chambers wrote: > Thanks. > > This was the only way I

Re: get for errors as string and not as HTML

2008-04-29 Thread Mike Chambers
Thanks. This was the only way I could get the string: {% for s in form.user_name.errors %}{{s}}{% endfor %} I tried some of the list template filters (such as slice, but didnt havent any luck with them). Are there instances where more than one validation error would be returned for a specifi

Re: get for errors as string and not as HTML

2008-04-29 Thread Ronny Haryanto
On Wed, Apr 30, 2008 at 12:03 PM, Mike Chambers <[EMAIL PROTECTED]> wrote: > > Name > {{ form.user_name }} {{ form.user_name.errors }} > > Is there any way to just get the raw error string? You should be able to treat form.user_name.errors as

get for errors as string and not as HTML

2008-04-29 Thread Mike Chambers
I have a form that I am custom rendering in a view like so: -- Name {{ form.user_name }} -- I am working on implementing input error feedback, so I did this: -- Name {{ form.user_name }} {{ form.user_n