Re: form error_messages doesnt work

2009-04-09 Thread emonk
ok ok, i will use a regexp field, but I still think they should be able to make a custom error message for form.IntegerField without %s . thanks for your help guys. On Fri, Apr 10, 2009 at 1:02 AM, Alex Gaynor wrote: > > > On Thu, Apr 9, 2009 at 11:58 PM, emonk wrote: > >> Thanks but is not a b

Re: form error_messages doesnt work

2009-04-09 Thread Alex Gaynor
On Thu, Apr 9, 2009 at 11:58 PM, emonk wrote: > Thanks but is not a better solution, this is bug > http://code.djangoproject.com/ticket/8104#comment:1 > > On Fri, Apr 10, 2009 at 12:52 AM, Malcolm Tredinnick < > malc...@pointy-stick.com> wrote: > >> >> On Fri, 2009-04-10 at 00:48 -0300, emonk wro

Re: form error_messages doesnt work

2009-04-09 Thread emonk
Thanks but is not a better solution, this is bug http://code.djangoproject.com/ticket/8104#comment:1 On Fri, Apr 10, 2009 at 12:52 AM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Fri, 2009-04-10 at 00:48 -0300, emonk wrote: > > I understand your point, but how i do if i dont want

Re: form error_messages doesnt work

2009-04-09 Thread Malcolm Tredinnick
On Fri, 2009-04-10 at 00:48 -0300, emonk wrote: > I understand your point, but how i do if i dont want to show the %s in > my custom error message? :S I mentioned that in my original reply in this thread: Use CharField or RegexField. Regards, Malcolm --~--~-~--~~~

Re: form error_messages doesnt work

2009-04-09 Thread emonk
I understand your point, but how i do if i dont want to show the %s in my custom error message? :S On Fri, Apr 10, 2009 at 12:22 AM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Fri, 2009-04-10 at 00:07 -0300, emonk wrote: > > I do not understand that these messages are not workin

Re: form error_messages doesnt work

2009-04-09 Thread Malcolm Tredinnick
On Fri, 2009-04-10 at 00:07 -0300, emonk wrote: > I do not understand that these messages are not working as if the > other > Who care if i talk about lenght, what happen if i talk about range of > numbers? I wrote that you need to accept a format parameter in the error messages (the "%s"). Have

Re: form error_messages doesnt work

2009-04-09 Thread emonk
btw, thanks anyway :) On Fri, Apr 10, 2009 at 12:07 AM, emonk wrote: > I do not understand that these messages are not working as if the other > Who care if i talk about lenght, what happen if i talk about range of > numbers? > That should be work just like the message "invalid" . > > > On Thu,

Re: form error_messages doesnt work

2009-04-09 Thread emonk
I do not understand that these messages are not working as if the other Who care if i talk about lenght, what happen if i talk about range of numbers? That should be work just like the message "invalid" . On Thu, Apr 9, 2009 at 11:50 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > O

Re: form error_messages doesnt work

2009-04-09 Thread Malcolm Tredinnick
On Thu, 2009-04-09 at 23:23 -0300, emonk wrote: > Hi, > I have this form: > class registerForm(forms.Form): > aNumber = forms.IntegerField( > label='Some Integer Field', > max_value=, > > m

form error_messages doesnt work

2009-04-09 Thread emonk
Hi, I have *this form:* class registerForm(forms.Form): aNumber = forms.IntegerField( label='Some Integer Field', max_value=, min_value=100, help_text='7