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 ) return super(HtmlEditorField, self).clean(value) And I use this field to render the textareas: class RandomEditForm( ModelForm ): description = HtmlField() Now the question is: where can I set the ROWS attribute for this Textarea? Tried to do it in my class definition: class HtmlEditorField(forms.Textarea): widget=forms.Texarea( attrs={'rows':20} ) It simply does nothing. In the rendered HTML code the rows are fixed at 10, no matter where I put the attrs part. Any suggestions where should I put the row information? I probably missed a very obvious piece of documentation somewhere but I am trying to get it working for more than a hour now without any success... Roodie --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---