mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Removed legacy ORM lookup support per deprecation timeline; refs #16187.
This commit is contained in:
@@ -81,13 +81,6 @@ class Node(object):
|
||||
"""
|
||||
return other in self.children
|
||||
|
||||
def _prepare_data(self, data):
|
||||
"""
|
||||
A subclass hook for doing subclass specific transformations of the
|
||||
given data on combine() or add().
|
||||
"""
|
||||
return data
|
||||
|
||||
def add(self, data, conn_type, squash=True):
|
||||
"""
|
||||
Combines this tree and the data represented by data using the
|
||||
@@ -105,7 +98,6 @@ class Node(object):
|
||||
"""
|
||||
if data in self.children:
|
||||
return data
|
||||
data = self._prepare_data(data)
|
||||
if not squash:
|
||||
self.children.append(data)
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user