Code

Ticket #872: 872.diff

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

Fix (off new-admin branch)

Line 
1Index: django/core/meta/fields.py
2===================================================================
3--- django/core/meta/fields.py  (revision 1338)
4+++ django/core/meta/fields.py  (working copy)
5@@ -621,8 +621,11 @@
6         return [formfields.SmallIntegerField]
7 
8 class TextField(Field):
9+    def __init__(self, *args, **kwargs):
10+        self.edit_rows = kwargs.pop('rows', 10)
11+        Field.__init__(self, *args, **kwargs)
12     def get_manipulator_field_objs(self):
13-        return [formfields.LargeTextField]
14+        return [curry(formfields.LargeTextField, rows=self.edit_rows)]
15 
16 class TimeField(Field):
17     empty_strings_allowed = False