summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-08-17 10:15:10 -0400
committerTim Graham <timograham@gmail.com>2015-09-23 19:31:09 -0400
commit3f50dc2be51ee68ce64ac1faadc91193f03fbe3f (patch)
tree6018afc12c53bd2feda7a91a606efa3d4c620356
parent9a3dfa2a524aedb8580b7311585f9d52f252f4e7 (diff)
Removed SQLCompiler.__call__() per deprecation timeline.
-rw-r--r--django/db/models/sql/compiler.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py
index 90121bdb37..790f5f53f7 100644
--- a/django/db/models/sql/compiler.py
+++ b/django/db/models/sql/compiler.py
@@ -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