Re: raise ValidationError has no effect

2009-04-08 Thread Alistair Marshall
2009/4/8 brian : > > I think I'm having the same issue.  Did you ever find a solution? > Yea, Karen Tracey was right in my case: > On Feb 14, 5:06 pm, Karen Tracey wrote: >> On Sat, Feb 14, 2009 at 11:07 AM, Alistair Marshall < >> this is covered here: >> >> http://docs.djangoproject.com/en/dev

Re: raise ValidationError has no effect

2009-04-08 Thread brian
I think I'm having the same issue. Did you ever find a solution? On Feb 14, 5:06 pm, Karen Tracey wrote: > On Sat, Feb 14, 2009 at 11:07 AM, Alistair Marshall < > > runninga...@googlemail.com> wrote: > > > I have been trying to create a custom field that allows the user to > > enter a flowrate

Re: raise ValidationError has no effect

2009-02-15 Thread Alistair Marshall
On Feb 15, 12:06 am, Karen Tracey wrote: > The previous paragraph means that if you are overriding Form.clean(), you > should iterate through self.cleaned_data.items(), possibly considering the > _errors dictionary attribute on the form as well. In this way, you will > already know which fields h

Re: raise ValidationError has no effect

2009-02-14 Thread Karen Tracey
On Sat, Feb 14, 2009 at 11:07 AM, Alistair Marshall < runninga...@googlemail.com> wrote: > > I have been trying to create a custom field that allows the user to > enter a flowrate and clean the data back to kg/s or mol/s. > > I though I had everything sorted, when I type '10 tones/year', it > corr

Re: raise ValidationError has no effect

2009-02-14 Thread Briel
I dont really get your problem, but it seems that your problem is going on in your views. When you raise a validation error the clean method should stop right there like you say it does. It's up to you to act on validation errors with stuff like is_valid() and do what you want when the form doesn'

raise ValidationError has no effect

2009-02-14 Thread Alistair Marshall
I have been trying to create a custom field that allows the user to enter a flowrate and clean the data back to kg/s or mol/s. I though I had everything sorted, when I type '10 tones/year', it correctly did the conversion however when I type something that does not validate such as 'twenty' or '5