Removed SQLCompiler.__call__() per deprecation timeline.

This commit is contained in:
Tim Graham 2015-08-17 10:15:10 -04:00
parent 9a3dfa2a52
commit 3f50dc2be5
1 changed files with 0 additions and 13 deletions

View File

@ -1,5 +1,4 @@
import re
import warnings
from itertools import chain
from django.core.exceptions import FieldError
@ -13,7 +12,6 @@ from django.db.models.sql.datastructures import EmptyResultSet
from django.db.models.sql.query import Query, get_order_dir
from django.db.transaction import TransactionManagementError
from django.db.utils import DatabaseError
from django.utils.deprecation import RemovedInDjango110Warning
from django.utils.six.moves import zip
@ -330,17 +328,6 @@ class SQLCompiler(object):
extra_select.append((expr, (without_ordering, params), None))
return extra_select
def __call__(self, name):
"""
Backwards-compatibility shim so that calling a SQLCompiler is equivalent to
calling its quote_name_unless_alias method.
"""
warnings.warn(
"Calling a SQLCompiler directly is deprecated. "
"Call compiler.quote_name_unless_alias instead.",
RemovedInDjango110Warning, stacklevel=2)
return self.quote_name_unless_alias(name)
def quote_name_unless_alias(self, name):
"""
A wrapper around connection.ops.quote_name that doesn't quote aliases