Kaydet (Commit) a3bd8672 authored tarafından Tim Graham's avatar Tim Graham

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

üst 03087f80
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.
......
......@@ -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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment