Ticket #872: 872.diff
File 872.diff, 650 bytes (added by , 19 years ago) |
---|
-
django/core/meta/fields.py
621 621 return [formfields.SmallIntegerField] 622 622 623 623 class TextField(Field): 624 def __init__(self, *args, **kwargs): 625 self.edit_rows = kwargs.pop('rows', 10) 626 Field.__init__(self, *args, **kwargs) 624 627 def get_manipulator_field_objs(self): 625 return [ formfields.LargeTextField]628 return [curry(formfields.LargeTextField, rows=self.edit_rows)] 626 629 627 630 class TimeField(Field): 628 631 empty_strings_allowed = False