1
0
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:
Tim Graham
2015-01-18 14:29:09 -05:00
parent 5792e6a88c
commit 5008a4db44
3 changed files with 8 additions and 255 deletions

View File

@@ -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