Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 44ca5f4

Browse files
committed
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
1 parent 94beaa6 commit 44ca5f4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

‎django/db/models/fields/__init__.py‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,12 +1166,3 @@ def __init__(self, verbose_name=None, name=None, schema_path=None, **kwargs):
11661166
def get_manipulator_field_objs(self):
11671167
return [curry(oldforms.XMLLargeTextField, schema_path=self.schema_path)]
11681168

1169-
class OrderingField(IntegerField):
1170-
empty_strings_allowed=False
1171-
def __init__(self, with_respect_to, **kwargs):
1172-
self.wrt = with_respect_to
1173-
kwargs['null'] = True
1174-
IntegerField.__init__(self, **kwargs )
1175-
1176-
def get_manipulator_fields(self, opts, manipulator, change, name_prefix='', rel=False, follow=True):
1177-
return [oldforms.HiddenField(name_prefix + self.name)]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /