mirror of
https://github.com/django/django.git
synced 2025-10-05 00:00:37 +00:00
Fixed #19469 -- Removed opts.get_ordered_objects() and related code
The code was dead-code since 2006.
This commit is contained in:
parent
9facca28b6
commit
d7b49f5b0d
7 changed files with 5 additions and 328 deletions
|
@ -507,16 +507,3 @@ class Options(object):
|
|||
# of the chain to the ancestor is that parent
|
||||
# links
|
||||
return self.parents[parent] or parent_link
|
||||
|
||||
def get_ordered_objects(self):
|
||||
"Returns a list of Options objects that are ordered with respect to this object."
|
||||
if not hasattr(self, '_ordered_objects'):
|
||||
objects = []
|
||||
# TODO
|
||||
#for klass in get_models(get_app(self.app_label)):
|
||||
# opts = klass._meta
|
||||
# if opts.order_with_respect_to and opts.order_with_respect_to.rel \
|
||||
# and self == opts.order_with_respect_to.rel.to._meta:
|
||||
# objects.append(opts)
|
||||
self._ordered_objects = objects
|
||||
return self._ordered_objects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue