Ticket #872: 872.diff

File 872.diff, 650 bytes (added by garthk, 9 years ago)

Fix (off new-admin branch)

  • django/core/meta/fields.py

     
    621621        return [formfields.SmallIntegerField]
    622622
    623623class TextField(Field):
     624    def __init__(self, *args, **kwargs):
     625        self.edit_rows = kwargs.pop('rows', 10)
     626        Field.__init__(self, *args, **kwargs)
    624627    def get_manipulator_field_objs(self):
    625         return [formfields.LargeTextField]
     628        return [curry(formfields.LargeTextField, rows=self.edit_rows)]
    626629
    627630class TimeField(Field):
    628631    empty_strings_allowed = False
Back to Top