Re: Newforms and textareas

2008-06-27 Thread Roodie
Dang, thanks, I knew it is something obvious... Interesting thing is that it worked so far, I mean it rendered properly :-) Roodie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Newforms and textareas

2008-06-27 Thread Arien
On Fri, Jun 27, 2008 at 11:04 AM, Roodie <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a slight problem. I am using a custom form field to do some > extra validation / filtering on a specific kind of field. The code is > very simple: > > class HtmlEditorField(forms.Textarea): >def

Re: Newforms and textareas

2008-06-27 Thread [EMAIL PROTECTED]
You are creating a field that subclasses a widget, which makes no sense. forms.Textare is a widget, not a field. On Jun 27, 11:04 am, Roodie <[EMAIL PROTECTED]> wrote: > Hello, > > I have a slight problem. I am using a custom form field to do some > extra validation / filtering on a specific

Newforms and textareas

2008-06-27 Thread Roodie
Hello, I have a slight problem. I am using a custom form field to do some extra validation / filtering on a specific kind of field. The code is very simple: class HtmlEditorField(forms.Textarea): def clean(self, value): value = filter_common( value )