Ticket #7033: remove_unused_OrderField.diff
File remove_unused_OrderField.diff, 872 bytes (added by , 16 years ago) |
---|
-
E:/Software/workspace/django/django/db/models/fields/__init__.py
1160 1160 def get_manipulator_field_objs(self): 1161 1161 return [curry(oldforms.XMLLargeTextField, schema_path=self.schema_path)] 1162 1162 1163 class OrderingField(IntegerField):1164 empty_strings_allowed=False1165 def __init__(self, with_respect_to, **kwargs):1166 self.wrt = with_respect_to1167 kwargs['null'] = True1168 IntegerField.__init__(self, **kwargs )1169 1170 def get_manipulator_fields(self, opts, manipulator, change, name_prefix='', rel=False, follow=True):1171 return [oldforms.HiddenField(name_prefix + self.name)]