Refs #24154 -- Removed deprecated BaseDatabaseOperations.check_aggregate_support().

This commit is contained in:
Tim Graham 2016-12-31 14:11:52 -05:00
parent 03087f80d1
commit a3bd8672d8
2 changed files with 3 additions and 9 deletions

View File

@ -1,6 +1,5 @@
import datetime
import decimal
import warnings
from importlib import import_module
from django.conf import settings
@ -8,7 +7,6 @@ from django.core.exceptions import ImproperlyConfigured
from django.db.backends import utils
from django.utils import six, timezone
from django.utils.dateparse import parse_duration
from django.utils.deprecation import RemovedInDjango20Warning
from django.utils.encoding import force_text
@ -556,13 +554,6 @@ class BaseDatabaseOperations(object):
value = parse_duration(value)
return value
def check_aggregate_support(self, aggregate_func):
warnings.warn(
"check_aggregate_support has been deprecated. Use "
"check_expression_support instead.",
RemovedInDjango20Warning, stacklevel=2)
return self.check_expression_support(aggregate_func)
def check_expression_support(self, expression):
"""
Check that the backend supports the provided expression.

View File

@ -236,3 +236,6 @@ these features.
* The ``weak`` argument to ``django.dispatch.signals.Signal.disconnect()`` is
removed.
* ``django.db.backends.base.BaseDatabaseOperations.check_aggregate_support()``
is removed.