Ticket #3267: newforms_textfield_rendered_as_textarea.diff
File newforms_textfield_rendered_as_textarea.diff, 717 bytes (added by , 18 years ago) |
---|
-
django/db/models/fields/__init__.py
757 757 def get_manipulator_field_objs(self): 758 758 return [oldforms.LargeTextField] 759 759 760 def formfield(self, initial=None): 761 from django.newforms import widgets 762 return forms.CharField(required=not self.blank, widget=widgets.Textarea, label=capfirst(self.verbose_name), initial=initial) 763 764 760 765 class TimeField(Field): 761 766 empty_strings_allowed = False 762 767 def __init__(self, verbose_name=None, name=None, auto_now=False, auto_now_add=False, **kwargs):