summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-06-30 07:10:03 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-06-30 07:10:03 +0000
commit44ca5f46c9ca1a6eeeaa4f6fd30d0a3ea7a719bf (patch)
tree1d185c2b19bde9578d58f645a354438ebb4a3082
parent94beaa6ebbad080786a60944086a7bb95451c8ad (diff)
Fixed #7033 -- Removed an unused field.
OrderingField was added in the magic-removal branch to support something that never ultimately materialised, but it wasn't removed. So this is backwards-incompatible if you're using this field that has no purpose, I guess. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7794 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/models/fields/__init__.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index dc5cb9609c..5e29cd5b5f 100644
--- a/django/db/models/fields/__init__.py
+++ b/django/db/models/fields/__init__.py
@@ -1166,12 +1166,3 @@ class XMLField(TextField):
def get_manipulator_field_objs(self):
return [curry(oldforms.XMLLargeTextField, schema_path=self.schema_path)]
-class OrderingField(IntegerField):
- empty_strings_allowed=False
- def __init__(self, with_respect_to, **kwargs):
- self.wrt = with_respect_to
- kwargs['null'] = True
- IntegerField.__init__(self, **kwargs )
-
- def get_manipulator_fields(self, opts, manipulator, change, name_prefix='', rel=False, follow=True):
- return [oldforms.HiddenField(name_prefix + self.name)]