1
0
mirror of https://github.com/django/django.git synced 2024-12-27 03:25:58 +00:00

Fixed signature of BaseDatabaseOperations.date_interval_sql()

Backport of 7fa7dd48c4 from master
This commit is contained in:
Michael Manfre 2015-02-22 23:23:16 -05:00
parent 19c2fe04a8
commit ed941ef2d0
2 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class BaseDatabaseOperations(object):
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a date_extract_sql() method')
def date_interval_sql(self, sql, connector, timedelta):
def date_interval_sql(self, timedelta):
"""
Implements the date interval functionality for expressions
"""

View File

@ -1013,6 +1013,9 @@ those writing third-party backends in updating their code:
* The ``SQLCompiler.as_sql()`` method now takes a ``subquery`` parameter
(:ticket:`24164`).
* The ``BaseDatabaseOperations.date_interval_sql()`` method now only takes a
``timedelta`` parameter.
:mod:`django.contrib.admin`
~~~~~~~~~~~~~~~~~~~~~~~~~~~