thanks, i think you are right, but now i cant check it, i'll do it later! thanks!
On 17 abr, 23:00, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Sunday, 17 April 2011 21:41:15 UTC+1, Antonio Sánchez wrote: > > > hi, im working with a modelform, and overrided clen methos for making > > some custom checks, raising a forms.ValidationError when i need, im > > sure this error is raised, but i dont know why in the template errors > > are not showed (instead of form is showed again cause it's not > > valid!), here is some of the code:http://pastebin.com/j2SvJYgA some > > help, thanks > > With that code, if the form is not valid and `new` is None, the form will be > re-instantiated without any bound data. Replace `if new is None` with `elif > new is None`. > -- > DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.